OLD | NEW |
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 Loading... |
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 |
OLD | NEW |