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

Side by Side Diff: content/browser/device_orientation/device_inertial_sensor_browsertest.cc

Issue 214823006: Move ContentBrowserTest class to content/public, since it's used by components_browsertests for bro… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: remove other files Created 6 years, 9 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/command_line.h" 5 #include "base/command_line.h"
6 #include "base/synchronization/waitable_event.h" 6 #include "base/synchronization/waitable_event.h"
7 #include "content/browser/device_orientation/data_fetcher_shared_memory.h" 7 #include "content/browser/device_orientation/data_fetcher_shared_memory.h"
8 #include "content/browser/device_orientation/device_inertial_sensor_service.h" 8 #include "content/browser/device_orientation/device_inertial_sensor_service.h"
9 #include "content/common/device_orientation/device_motion_hardware_buffer.h" 9 #include "content/common/device_orientation/device_motion_hardware_buffer.h"
10 #include "content/common/device_orientation/device_orientation_hardware_buffer.h " 10 #include "content/common/device_orientation/device_orientation_hardware_buffer.h "
11 #include "content/public/browser/browser_thread.h" 11 #include "content/public/browser/browser_thread.h"
12 #include "content/public/browser/web_contents.h" 12 #include "content/public/browser/web_contents.h"
13 #include "content/public/common/content_switches.h" 13 #include "content/public/common/content_switches.h"
14 #include "content/public/test/content_browser_test.h"
15 #include "content/public/test/content_browser_test_utils.h"
14 #include "content/shell/browser/shell.h" 16 #include "content/shell/browser/shell.h"
15 #include "content/test/content_browser_test.h"
16 #include "content/test/content_browser_test_utils.h"
17 17
18 namespace content { 18 namespace content {
19 19
20 namespace { 20 namespace {
21 21
22 class FakeDataFetcher : public DataFetcherSharedMemory { 22 class FakeDataFetcher : public DataFetcherSharedMemory {
23 public: 23 public:
24 FakeDataFetcher() 24 FakeDataFetcher()
25 : started_orientation_(false, false), 25 : started_orientation_(false, false),
26 stopped_orientation_(false, false), 26 stopped_orientation_(false, false),
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 NavigateToURLBlockUntilNavigationsComplete(shell(), test_url, 2); 171 NavigateToURLBlockUntilNavigationsComplete(shell(), test_url, 2);
172 172
173 EXPECT_EQ("pass", shell()->web_contents()->GetLastCommittedURL().ref()); 173 EXPECT_EQ("pass", shell()->web_contents()->GetLastCommittedURL().ref());
174 fetcher_->started_motion_.Wait(); 174 fetcher_->started_motion_.Wait();
175 fetcher_->stopped_motion_.Wait(); 175 fetcher_->stopped_motion_.Wait();
176 } 176 }
177 177
178 } // namespace 178 } // namespace
179 179
180 } // namespace content 180 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/database_browsertest.cc ('k') | content/browser/devtools/renderer_overrides_handler_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698