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

Side by Side Diff: content/browser/geolocation/mock_location_provider.cc

Issue 10103029: Add device location reporting (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 8 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 unified diff | Download patch
OLDNEW
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698