OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_BROWSER_GEOLOCATION_MOCK_LOCATION_PROVIDER_H_ | 5 #ifndef CONTENT_BROWSER_GEOLOCATION_MOCK_LOCATION_PROVIDER_H_ |
6 #define CONTENT_BROWSER_GEOLOCATION_MOCK_LOCATION_PROVIDER_H_ | 6 #define CONTENT_BROWSER_GEOLOCATION_MOCK_LOCATION_PROVIDER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 | 9 |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 // Creates a mock location provider that automatically notifies its | 53 // Creates a mock location provider that automatically notifies its |
54 // listeners with a valid location when StartProvider is called. | 54 // listeners with a valid location when StartProvider is called. |
55 LocationProviderBase* NewAutoSuccessMockLocationProvider(); | 55 LocationProviderBase* NewAutoSuccessMockLocationProvider(); |
56 // Creates a mock location provider that automatically notifies its | 56 // Creates a mock location provider that automatically notifies its |
57 // listeners with an error when StartProvider is called. | 57 // listeners with an error when StartProvider is called. |
58 LocationProviderBase* NewAutoFailMockLocationProvider(); | 58 LocationProviderBase* NewAutoFailMockLocationProvider(); |
59 // Similar to NewAutoSuccessMockLocationProvider but mimicks the behavior of | 59 // Similar to NewAutoSuccessMockLocationProvider but mimicks the behavior of |
60 // the Network Location provider, in deferring making location updates until | 60 // the Network Location provider, in deferring making location updates until |
61 // a permission request has been confirmed. | 61 // a permission request has been confirmed. |
62 LocationProviderBase* NewAutoSuccessMockNetworkLocationProvider(); | 62 LocationProviderBase* NewAutoSuccessMockNetworkLocationProvider(); |
| 63 // Similar to NewAutoFailMockLocationProvider but mimicks the behavior of |
| 64 // the Network Location provider, in deferring making location updates until |
| 65 // a permission request has been confirmed. |
| 66 LocationProviderBase* NewAutoFailMockNetworkLocationProvider(); |
63 | 67 |
64 #endif // CONTENT_BROWSER_GEOLOCATION_MOCK_LOCATION_PROVIDER_H_ | 68 #endif // CONTENT_BROWSER_GEOLOCATION_MOCK_LOCATION_PROVIDER_H_ |
OLD | NEW |