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

Side by Side Diff: content/renderer/device_sensors/device_orientation_event_pump_unittest.cc

Issue 1544273002: Switch to standard integer types in content/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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>
8
7 #include "base/location.h" 9 #include "base/location.h"
8 #include "base/logging.h" 10 #include "base/logging.h"
9 #include "base/macros.h" 11 #include "base/macros.h"
10 #include "base/single_thread_task_runner.h" 12 #include "base/single_thread_task_runner.h"
11 #include "base/thread_task_runner_handle.h" 13 #include "base/thread_task_runner_handle.h"
12 #include "content/common/device_sensors/device_orientation_hardware_buffer.h" 14 #include "content/common/device_sensors/device_orientation_hardware_buffer.h"
13 #include "content/public/test/test_utils.h" 15 #include "content/public/test/test_utils.h"
14 #include "testing/gtest/include/gtest/gtest.h" 16 #include "testing/gtest/include/gtest/gtest.h"
15 #include "third_party/WebKit/public/platform/modules/device_orientation/WebDevic eOrientationListener.h" 17 #include "third_party/WebKit/public/platform/modules/device_orientation/WebDevic eOrientationListener.h"
16 18
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 FROM_HERE, base::Bind(&DeviceOrientationEventPumpForTesting::FireEvent, 211 FROM_HERE, base::Bind(&DeviceOrientationEventPumpForTesting::FireEvent,
210 base::Unretained(orientation_pump()))); 212 base::Unretained(orientation_pump())));
211 base::MessageLoop::current()->Run(); 213 base::MessageLoop::current()->Run();
212 214
213 EXPECT_TRUE(listener()->did_change_device_orientation()); 215 EXPECT_TRUE(listener()->did_change_device_orientation());
214 EXPECT_EQ(1 + DeviceOrientationEventPump::kOrientationThreshold, 216 EXPECT_EQ(1 + DeviceOrientationEventPump::kOrientationThreshold,
215 static_cast<double>(received_data.alpha)); 217 static_cast<double>(received_data.alpha));
216 } 218 }
217 219
218 } // namespace content 220 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/device_sensors/device_orientation_event_pump.cc ('k') | content/renderer/devtools/v8_sampling_profiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698