OLD | NEW |
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 #include "base/bind.h" | 5 #include "base/bind.h" |
6 #include "base/bind_helpers.h" | 6 #include "base/bind_helpers.h" |
7 #include "base/location.h" | 7 #include "base/location.h" |
| 8 #include "base/macros.h" |
8 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
9 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
10 #include "base/single_thread_task_runner.h" | 11 #include "base/single_thread_task_runner.h" |
11 #include "base/strings/string16.h" | 12 #include "base/strings/string16.h" |
12 #include "base/time/time.h" | 13 #include "base/time/time.h" |
13 #include "content/browser/geolocation/geolocation_provider_impl.h" | 14 #include "content/browser/geolocation/geolocation_provider_impl.h" |
14 #include "content/browser/geolocation/mock_location_arbitrator.h" | 15 #include "content/browser/geolocation/mock_location_arbitrator.h" |
15 #include "content/public/browser/access_token_store.h" | 16 #include "content/public/browser/access_token_store.h" |
16 #include "content/public/browser/browser_thread.h" | 17 #include "content/public/browser/browser_thread.h" |
17 #include "content/public/test/test_browser_thread.h" | 18 #include "content/public/test/test_browser_thread.h" |
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 &MockGeolocationObserver::OnLocationUpdate, | 247 &MockGeolocationObserver::OnLocationUpdate, |
247 base::Unretained(&mock_observer)); | 248 base::Unretained(&mock_observer)); |
248 scoped_ptr<content::GeolocationProvider::Subscription> subscription = | 249 scoped_ptr<content::GeolocationProvider::Subscription> subscription = |
249 provider()->AddLocationUpdateCallback(callback, false); | 250 provider()->AddLocationUpdateCallback(callback, false); |
250 subscription.reset(); | 251 subscription.reset(); |
251 // Wait for the providers to be stopped now that all clients are gone. | 252 // Wait for the providers to be stopped now that all clients are gone. |
252 EXPECT_FALSE(ProvidersStarted()); | 253 EXPECT_FALSE(ProvidersStarted()); |
253 } | 254 } |
254 | 255 |
255 } // namespace content | 256 } // namespace content |
OLD | NEW |