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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « content/common/geofencing_status.cc ('k') | content/common/geofencing_types.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_COMMON_GEOFENCING_STATUS_H_ 5 #ifndef CONTENT_COMMON_GEOFENCING_TYPES_H_
6 #define CONTENT_COMMON_GEOFENCING_STATUS_H_ 6 #define CONTENT_COMMON_GEOFENCING_TYPES_H_
7 7
8 namespace content { 8 namespace content {
9 9
10 enum GeofencingStatus { 10 enum GeofencingStatus {
11 // Everything is ok. 11 // Everything is ok.
12 GEOFENCING_STATUS_OK, 12 GEOFENCING_STATUS_OK,
13 13
14 // Operation failed because there is no Service Worker. 14 // Operation failed because there is no Service Worker.
15 GEOFENCING_STATUS_OPERATION_FAILED_NO_SERVICE_WORKER, 15 GEOFENCING_STATUS_OPERATION_FAILED_NO_SERVICE_WORKER,
16 16
17 // Operation failed because geofencing is not available. 17 // Operation failed because geofencing is not available.
18 GEOFENCING_STATUS_OPERATION_FAILED_SERVICE_NOT_AVAILABLE, 18 GEOFENCING_STATUS_OPERATION_FAILED_SERVICE_NOT_AVAILABLE,
19 19
20 // Unregistering failed because region was not registered. 20 // Unregistering failed because region was not registered.
21 GEOFENCING_STATUS_UNREGISTRATION_FAILED_NOT_REGISTERED, 21 GEOFENCING_STATUS_UNREGISTRATION_FAILED_NOT_REGISTERED,
22 22
23 // Generic error. 23 // Generic error.
24 GEOFENCING_STATUS_ERROR, 24 GEOFENCING_STATUS_ERROR,
25 25
26 // Used for IPC message range checks. 26 // Used for IPC message range checks.
27 GEOFENCING_STATUS_LAST = GEOFENCING_STATUS_ERROR 27 GEOFENCING_STATUS_LAST = GEOFENCING_STATUS_ERROR
28 }; 28 };
29 29
30 const char* GeofencingStatusToString(GeofencingStatus status); 30 const char* GeofencingStatusToString(GeofencingStatus status);
31 31
32 enum class GeofencingMockState {
33 // Not currently mocking, use real geofencing service.
34 NONE,
35
36 // Mock a geofencing service that isn't available.
37 SERVICE_UNAVAILABLE,
38
39 // Mock a geofencing service that is available.
40 SERVICE_AVAILABLE,
41
42 // Used for IPC message range checks.
43 LAST = SERVICE_AVAILABLE
44 };
45
32 } // namespace content 46 } // namespace content
33 47
34 #endif // CONTENT_COMMON_GEOFENCING_STATUS_H_ 48 #endif // CONTENT_COMMON_GEOFENCING_TYPES_H_
OLDNEW
« 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