0.1.0-0-pre.4
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// file: crates/engines/engine-v1-platform-api/src/service.rs
|
||||
// version: 2
|
||||
// version: 3
|
||||
|
||||
/// Platform capabilities that may have different implementations per target.
|
||||
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
|
||||
@@ -61,11 +61,5 @@ impl MonetizationCapabilities {
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod unit_tests {
|
||||
#[test]
|
||||
fn disabled_monetization_disables_both_services() {
|
||||
let capabilities = crate::MonetizationCapabilities::disabled();
|
||||
assert_eq!(capabilities.advertising(), crate::PlatformServiceAvailability::Disabled);
|
||||
assert_eq!(capabilities.billing(), crate::PlatformServiceAvailability::Disabled);
|
||||
}
|
||||
}
|
||||
#[path = "../unit_tests/service.rs"]
|
||||
mod tests;
|
||||
|
||||
Reference in New Issue
Block a user