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

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

Issue 10500016: Move test_browser_thread.h from content\test to content\public\test. This way we can enforce that i… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 6 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 | Annotate | Revision Log
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 #include "base/bind.h" 5 #include "base/bind.h"
6 #include "base/bind_helpers.h" 6 #include "base/bind_helpers.h"
7 #include "base/memory/ref_counted.h" 7 #include "base/memory/ref_counted.h"
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "base/string16.h" 10 #include "base/string16.h"
11 #include "base/synchronization/waitable_event.h" 11 #include "base/synchronization/waitable_event.h"
12 #include "base/time.h" 12 #include "base/time.h"
13 #include "content/browser/geolocation/arbitrator_dependency_factory.h" 13 #include "content/browser/geolocation/arbitrator_dependency_factory.h"
14 #include "content/browser/geolocation/geolocation_provider.h" 14 #include "content/browser/geolocation/geolocation_provider.h"
15 #include "content/browser/geolocation/location_arbitrator.h" 15 #include "content/browser/geolocation/location_arbitrator.h"
16 #include "content/browser/geolocation/location_provider.h" 16 #include "content/browser/geolocation/location_provider.h"
17 #include "content/browser/geolocation/mock_location_provider.h" 17 #include "content/browser/geolocation/mock_location_provider.h"
18 #include "content/public/browser/access_token_store.h" 18 #include "content/public/browser/access_token_store.h"
19 #include "content/public/browser/browser_thread.h" 19 #include "content/public/browser/browser_thread.h"
20 #include "content/test/test_browser_thread.h" 20 #include "content/public/test/test_browser_thread.h"
21 #include "googleurl/src/gurl.h" 21 #include "googleurl/src/gurl.h"
22 #include "testing/gmock/include/gmock/gmock.h" 22 #include "testing/gmock/include/gmock/gmock.h"
23 #include "testing/gtest/include/gtest/gtest.h" 23 #include "testing/gtest/include/gtest/gtest.h"
24 24
25 using content::Geoposition; 25 using content::Geoposition;
26 using testing::MakeMatcher; 26 using testing::MakeMatcher;
27 using testing::Matcher; 27 using testing::Matcher;
28 using testing::MatcherInterface; 28 using testing::MatcherInterface;
29 using testing::MatchResultListener; 29 using testing::MatchResultListener;
30 30
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 position.longitude = 34; 242 position.longitude = 34;
243 position.accuracy = 56; 243 position.accuracy = 56;
244 position.timestamp = base::Time::Now(); 244 position.timestamp = base::Time::Now();
245 EXPECT_CALL(callback_wrapper, Callback(GeopositionEq(position))); 245 EXPECT_CALL(callback_wrapper, Callback(GeopositionEq(position)));
246 provider_->OverrideLocationForTesting(position); 246 provider_->OverrideLocationForTesting(position);
247 // Wait for the providers to be stopped now that all clients are gone. 247 // Wait for the providers to be stopped now that all clients are gone.
248 WaitAndReset(); 248 WaitAndReset();
249 } 249 }
250 250
251 } // namespace 251 } // namespace
OLDNEW
« no previous file with comments | « content/browser/download/download_manager_impl_unittest.cc ('k') | content/browser/host_zoom_map_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698