diff options
Diffstat (limited to 'vendor/os_info/src/android/mod.rs')
-rw-r--r-- | vendor/os_info/src/android/mod.rs | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/vendor/os_info/src/android/mod.rs b/vendor/os_info/src/android/mod.rs new file mode 100644 index 000000000..51c99ba88 --- /dev/null +++ b/vendor/os_info/src/android/mod.rs @@ -0,0 +1,23 @@ +use log::trace; + +use crate::{Bitness, Info, Type}; + +pub fn current_platform() -> Info { + trace!("android::current_platform is called"); + + let info = Info::with_type(Type::Android); + trace!("Returning {:?}", info); + info +} + +#[cfg(test)] +mod tests { + use super::*; + use pretty_assertions::assert_eq; + + #[test] + fn os_type() { + let version = current_platform(); + assert_eq!(Type::Android, version.os_type()); + } +} |