summaryrefslogtreecommitdiffstats
path: root/vendor/os_info/src/android/mod.rs
blob: 51c99ba88fb5b6cce84476db426aa0bf9c23e6f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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());
    }
}