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

Unified Diff: device/generic_sensor/platform_sensor.h

Issue 2306333002: [sensors] Add Generic Sensor platform unit tests. (Closed)
Patch Set: Comments 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.h
diff --git a/device/generic_sensor/platform_sensor.h b/device/generic_sensor/platform_sensor.h
index 0f263804d62197b1ee510ea2785935aa5bfc1fd1..8b2324ed8a19456c9875b6a009c47da495d31064 100644
--- a/device/generic_sensor/platform_sensor.h
+++ b/device/generic_sensor/platform_sensor.h
@@ -72,6 +72,9 @@ class PlatformSensor : public base::RefCountedThreadSafe<PlatformSensor> {
private:
friend class base::RefCountedThreadSafe<PlatformSensor>;
+ // For testing purposes.
+ friend class MockPlatformSensor;
+
mojom::SensorType type_;
base::ObserverList<Client, true> clients_;
ConfigMap config_map_;

Powered by Google App Engine
This is Rietveld 408576698