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/command_line.h" | 5 #include "base/command_line.h" |
| 6 #include "base/macros.h" |
6 #include "base/synchronization/waitable_event.h" | 7 #include "base/synchronization/waitable_event.h" |
7 #include "base/threading/platform_thread.h" | 8 #include "base/threading/platform_thread.h" |
8 #include "content/browser/device_sensors/data_fetcher_shared_memory.h" | 9 #include "content/browser/device_sensors/data_fetcher_shared_memory.h" |
9 #include "content/browser/device_sensors/device_inertial_sensor_service.h" | 10 #include "content/browser/device_sensors/device_inertial_sensor_service.h" |
10 #include "content/common/device_sensors/device_light_hardware_buffer.h" | 11 #include "content/common/device_sensors/device_light_hardware_buffer.h" |
11 #include "content/common/device_sensors/device_motion_hardware_buffer.h" | 12 #include "content/common/device_sensors/device_motion_hardware_buffer.h" |
12 #include "content/common/device_sensors/device_orientation_hardware_buffer.h" | 13 #include "content/common/device_sensors/device_orientation_hardware_buffer.h" |
13 #include "content/public/browser/browser_thread.h" | 14 #include "content/public/browser/browser_thread.h" |
14 #include "content/public/browser/web_contents.h" | 15 #include "content/public/browser/web_contents.h" |
15 #include "content/public/common/content_switches.h" | 16 #include "content/public/common/content_switches.h" |
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
327 fetcher_->stopped_motion_.Wait(); | 328 fetcher_->stopped_motion_.Wait(); |
328 fetcher_->started_orientation_.Wait(); | 329 fetcher_->started_orientation_.Wait(); |
329 fetcher_->stopped_orientation_.Wait(); | 330 fetcher_->stopped_orientation_.Wait(); |
330 same_tab_observer.Wait(); | 331 same_tab_observer.Wait(); |
331 EXPECT_EQ("pass", shell()->web_contents()->GetLastCommittedURL().ref()); | 332 EXPECT_EQ("pass", shell()->web_contents()->GetLastCommittedURL().ref()); |
332 } | 333 } |
333 | 334 |
334 } // namespace | 335 } // namespace |
335 | 336 |
336 } // namespace content | 337 } // namespace content |
OLD | NEW |