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

Side by Side Diff: device/geolocation/geolocation_provider_impl_unittest.cc

Issue 2876013002: Add missing IWYU message_loop.h includes. (Closed)
Patch Set: fix upstream Created 3 years, 7 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 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 "device/geolocation/geolocation_provider_impl.h" 5 #include "device/geolocation/geolocation_provider_impl.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "base/at_exit.h" 9 #include "base/at_exit.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
11 #include "base/bind_helpers.h" 11 #include "base/bind_helpers.h"
12 #include "base/location.h" 12 #include "base/location.h"
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "base/memory/ptr_util.h" 14 #include "base/memory/ptr_util.h"
15 #include "base/memory/ref_counted.h" 15 #include "base/memory/ref_counted.h"
16 #include "base/message_loop/message_loop.h"
16 #include "base/run_loop.h" 17 #include "base/run_loop.h"
17 #include "base/single_thread_task_runner.h" 18 #include "base/single_thread_task_runner.h"
18 #include "base/strings/string16.h" 19 #include "base/strings/string16.h"
19 #include "base/test/scoped_task_environment.h" 20 #include "base/test/scoped_task_environment.h"
20 #include "base/threading/thread_checker.h" 21 #include "base/threading/thread_checker.h"
21 #include "base/time/time.h" 22 #include "base/time/time.h"
22 #include "device/geolocation/access_token_store.h" 23 #include "device/geolocation/access_token_store.h"
23 #include "device/geolocation/fake_location_provider.h" 24 #include "device/geolocation/fake_location_provider.h"
24 #include "testing/gmock/include/gmock/gmock.h" 25 #include "testing/gmock/include/gmock/gmock.h"
25 #include "testing/gtest/include/gtest/gtest.h" 26 #include "testing/gtest/include/gtest/gtest.h"
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 base::Bind(&MockGeolocationObserver::OnLocationUpdate, 250 base::Bind(&MockGeolocationObserver::OnLocationUpdate,
250 base::Unretained(&mock_observer)); 251 base::Unretained(&mock_observer));
251 std::unique_ptr<GeolocationProvider::Subscription> subscription = 252 std::unique_ptr<GeolocationProvider::Subscription> subscription =
252 provider()->AddLocationUpdateCallback(callback, false); 253 provider()->AddLocationUpdateCallback(callback, false);
253 subscription.reset(); 254 subscription.reset();
254 // Wait for the providers to be stopped now that all clients are gone. 255 // Wait for the providers to be stopped now that all clients are gone.
255 EXPECT_FALSE(ProvidersStarted()); 256 EXPECT_FALSE(ProvidersStarted());
256 } 257 }
257 258
258 } // namespace device 259 } // namespace device
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698