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

Unified Diff: content/common/geofencing_types.h

Issue 701953007: Expose mock geofencing service via testRunner. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mention unifying bug in a comment Created 6 years 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
« no previous file with comments | « content/common/geofencing_status.cc ('k') | content/common/geofencing_types.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/geofencing_types.h
diff --git a/content/common/geofencing_status.h b/content/common/geofencing_types.h
similarity index 65%
rename from content/common/geofencing_status.h
rename to content/common/geofencing_types.h
index 13a1de8a2f4ee6a1ee9099f13fe0dbecf761fc0e..12899898ee55529cbc63443619c48f216b4fe542 100644
--- a/content/common/geofencing_status.h
+++ b/content/common/geofencing_types.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CONTENT_COMMON_GEOFENCING_STATUS_H_
-#define CONTENT_COMMON_GEOFENCING_STATUS_H_
+#ifndef CONTENT_COMMON_GEOFENCING_TYPES_H_
+#define CONTENT_COMMON_GEOFENCING_TYPES_H_
namespace content {
@@ -29,6 +29,20 @@ enum GeofencingStatus {
const char* GeofencingStatusToString(GeofencingStatus status);
+enum class GeofencingMockState {
+ // Not currently mocking, use real geofencing service.
+ NONE,
+
+ // Mock a geofencing service that isn't available.
+ SERVICE_UNAVAILABLE,
+
+ // Mock a geofencing service that is available.
+ SERVICE_AVAILABLE,
+
+ // Used for IPC message range checks.
+ LAST = SERVICE_AVAILABLE
+};
+
} // namespace content
-#endif // CONTENT_COMMON_GEOFENCING_STATUS_H_
+#endif // CONTENT_COMMON_GEOFENCING_TYPES_H_
« no previous file with comments | « content/common/geofencing_status.cc ('k') | content/common/geofencing_types.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698