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

Side by Side Diff: content/renderer/device_sensors/device_orientation_event_pump_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_orientation_event_pump.h" 5 #include "device_orientation_event_pump.h"
6 6
7 #include <string.h> 7 #include <string.h>
8 8
9 #include "base/location.h" 9 #include "base/location.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/message_loop/message_loop.h"
12 #include "base/run_loop.h" 13 #include "base/run_loop.h"
13 #include "base/single_thread_task_runner.h" 14 #include "base/single_thread_task_runner.h"
14 #include "base/threading/thread_task_runner_handle.h" 15 #include "base/threading/thread_task_runner_handle.h"
15 #include "content/public/test/test_utils.h" 16 #include "content/public/test/test_utils.h"
16 #include "device/sensors/public/cpp/device_orientation_hardware_buffer.h" 17 #include "device/sensors/public/cpp/device_orientation_hardware_buffer.h"
17 #include "testing/gtest/include/gtest/gtest.h" 18 #include "testing/gtest/include/gtest/gtest.h"
18 #include "third_party/WebKit/public/platform/modules/device_orientation/WebDevic eOrientationListener.h" 19 #include "third_party/WebKit/public/platform/modules/device_orientation/WebDevic eOrientationListener.h"
19 20
20 namespace content { 21 namespace content {
21 22
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 FROM_HERE, base::Bind(&DeviceOrientationEventPumpForTesting::FireEvent, 207 FROM_HERE, base::Bind(&DeviceOrientationEventPumpForTesting::FireEvent,
207 base::Unretained(orientation_pump()))); 208 base::Unretained(orientation_pump())));
208 base::RunLoop().Run(); 209 base::RunLoop().Run();
209 210
210 EXPECT_TRUE(listener()->did_change_device_orientation()); 211 EXPECT_TRUE(listener()->did_change_device_orientation());
211 EXPECT_EQ(1 + DeviceOrientationEventPump::kOrientationThreshold, 212 EXPECT_EQ(1 + DeviceOrientationEventPump::kOrientationThreshold,
212 static_cast<double>(received_data.alpha)); 213 static_cast<double>(received_data.alpha));
213 } 214 }
214 215
215 } // namespace content 216 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698