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 // This file implements a mock location provider and the factory functions for | 5 // This file implements a mock location provider and the factory functions for |
6 // various ways of creating it. | 6 // various ways of creating it. |
7 | 7 |
8 #include "content/browser/geolocation/mock_location_provider.h" | 8 #include "content/browser/geolocation/mock_location_provider.h" |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 return new AutoMockLocationProvider(true, false); | 123 return new AutoMockLocationProvider(true, false); |
124 } | 124 } |
125 | 125 |
126 LocationProviderBase* NewAutoFailMockLocationProvider() { | 126 LocationProviderBase* NewAutoFailMockLocationProvider() { |
127 return new AutoMockLocationProvider(false, false); | 127 return new AutoMockLocationProvider(false, false); |
128 } | 128 } |
129 | 129 |
130 LocationProviderBase* NewAutoSuccessMockNetworkLocationProvider() { | 130 LocationProviderBase* NewAutoSuccessMockNetworkLocationProvider() { |
131 return new AutoMockLocationProvider(true, true); | 131 return new AutoMockLocationProvider(true, true); |
132 } | 132 } |
| 133 |
| 134 LocationProviderBase* NewAutoFailMockNetworkLocationProvider() { |
| 135 return new AutoMockLocationProvider(false, true); |
| 136 } |
OLD | NEW |