Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(831)

Unified Diff: device/generic_sensor/platform_sensor_configuration.cc

Issue 2306333002: [sensors] Add Generic Sensor platform unit tests. (Closed)
Patch Set: Generic Sensor Unittest Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: device/generic_sensor/platform_sensor_configuration.cc
diff --git a/device/generic_sensor/platform_sensor_configuration.cc b/device/generic_sensor/platform_sensor_configuration.cc
index 760d62eeaf32d3ecc789aa34f25ce658dd9c65e1..4d17dee23c1b70901f8d53ff9da345ebb2465008 100644
--- a/device/generic_sensor/platform_sensor_configuration.cc
+++ b/device/generic_sensor/platform_sensor_configuration.cc
@@ -19,4 +19,11 @@ bool PlatformSensorConfiguration::operator==(
return frequency_ == other.frequency();
}
+bool PlatformSensorConfiguration::operator>(
+ const PlatformSensorConfiguration& other) const {
+ // TODO(shalamov): Platform dependent configuration can override this
+ // operator when necessary.
+ return frequency() > other.frequency();
+}
+
} // namespace device

Powered by Google App Engine
This is Rietveld 408576698