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

Side by Side Diff: content/shell/test_runner/test_runner.cc

Issue 2896583005: Reland: Refactor DeviceMotionEventPump to use //device/generic_sensor instead of //device/sensors (Closed)
Patch Set: updated test code 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 "content/shell/test_runner/test_runner.h" 5 #include "content/shell/test_runner/test_runner.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <limits> 8 #include <limits>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 14 matching lines...) Expand all
25 #include "content/shell/test_runner/mock_web_speech_recognizer.h" 25 #include "content/shell/test_runner/mock_web_speech_recognizer.h"
26 #include "content/shell/test_runner/mock_web_user_media_client.h" 26 #include "content/shell/test_runner/mock_web_user_media_client.h"
27 #include "content/shell/test_runner/pixel_dump.h" 27 #include "content/shell/test_runner/pixel_dump.h"
28 #include "content/shell/test_runner/spell_check_client.h" 28 #include "content/shell/test_runner/spell_check_client.h"
29 #include "content/shell/test_runner/test_common.h" 29 #include "content/shell/test_runner/test_common.h"
30 #include "content/shell/test_runner/test_interfaces.h" 30 #include "content/shell/test_runner/test_interfaces.h"
31 #include "content/shell/test_runner/test_preferences.h" 31 #include "content/shell/test_runner/test_preferences.h"
32 #include "content/shell/test_runner/test_runner_for_specific_view.h" 32 #include "content/shell/test_runner/test_runner_for_specific_view.h"
33 #include "content/shell/test_runner/web_test_delegate.h" 33 #include "content/shell/test_runner/web_test_delegate.h"
34 #include "content/shell/test_runner/web_view_test_proxy.h" 34 #include "content/shell/test_runner/web_view_test_proxy.h"
35 #include "device/sensors/public/cpp/motion_data.h"
36 #include "device/sensors/public/cpp/orientation_data.h" 35 #include "device/sensors/public/cpp/orientation_data.h"
37 #include "gin/arguments.h" 36 #include "gin/arguments.h"
38 #include "gin/array_buffer.h" 37 #include "gin/array_buffer.h"
39 #include "gin/handle.h" 38 #include "gin/handle.h"
40 #include "gin/object_template_builder.h" 39 #include "gin/object_template_builder.h"
41 #include "gin/wrappable.h" 40 #include "gin/wrappable.h"
42 #include "third_party/WebKit/public/platform/WebCanvas.h" 41 #include "third_party/WebKit/public/platform/WebCanvas.h"
43 #include "third_party/WebKit/public/platform/WebData.h" 42 #include "third_party/WebKit/public/platform/WebData.h"
44 #include "third_party/WebKit/public/platform/WebPasswordCredential.h" 43 #include "third_party/WebKit/public/platform/WebPasswordCredential.h"
45 #include "third_party/WebKit/public/platform/WebPoint.h" 44 #include "third_party/WebKit/public/platform/WebPoint.h"
46 #include "third_party/WebKit/public/platform/WebURLResponse.h" 45 #include "third_party/WebKit/public/platform/WebURLResponse.h"
46 #include "third_party/WebKit/public/platform/modules/device_orientation/WebDevic eMotionData.h"
47 #include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWor kerRegistration.h" 47 #include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWor kerRegistration.h"
48 #include "third_party/WebKit/public/web/WebArrayBuffer.h" 48 #include "third_party/WebKit/public/web/WebArrayBuffer.h"
49 #include "third_party/WebKit/public/web/WebArrayBufferConverter.h" 49 #include "third_party/WebKit/public/web/WebArrayBufferConverter.h"
50 #include "third_party/WebKit/public/web/WebDataSource.h" 50 #include "third_party/WebKit/public/web/WebDataSource.h"
51 #include "third_party/WebKit/public/web/WebDocument.h" 51 #include "third_party/WebKit/public/web/WebDocument.h"
52 #include "third_party/WebKit/public/web/WebFindOptions.h" 52 #include "third_party/WebKit/public/web/WebFindOptions.h"
53 #include "third_party/WebKit/public/web/WebFrame.h" 53 #include "third_party/WebKit/public/web/WebFrame.h"
54 #include "third_party/WebKit/public/web/WebInputElement.h" 54 #include "third_party/WebKit/public/web/WebInputElement.h"
55 #include "third_party/WebKit/public/web/WebKit.h" 55 #include "third_party/WebKit/public/web/WebKit.h"
56 #include "third_party/WebKit/public/web/WebLocalFrame.h" 56 #include "third_party/WebKit/public/web/WebLocalFrame.h"
(...skipping 2154 matching lines...) Expand 10 before | Expand all | Expand 10 after
2211 double acceleration_including_gravity_y, 2211 double acceleration_including_gravity_y,
2212 bool has_acceleration_including_gravity_z, 2212 bool has_acceleration_including_gravity_z,
2213 double acceleration_including_gravity_z, 2213 double acceleration_including_gravity_z,
2214 bool has_rotation_rate_alpha, 2214 bool has_rotation_rate_alpha,
2215 double rotation_rate_alpha, 2215 double rotation_rate_alpha,
2216 bool has_rotation_rate_beta, 2216 bool has_rotation_rate_beta,
2217 double rotation_rate_beta, 2217 double rotation_rate_beta,
2218 bool has_rotation_rate_gamma, 2218 bool has_rotation_rate_gamma,
2219 double rotation_rate_gamma, 2219 double rotation_rate_gamma,
2220 double interval) { 2220 double interval) {
2221 device::MotionData motion; 2221 blink::WebDeviceMotionData motion;
2222 2222
2223 // acceleration 2223 // acceleration
2224 motion.has_acceleration_x = has_acceleration_x; 2224 motion.has_acceleration_x = has_acceleration_x;
2225 motion.acceleration_x = acceleration_x; 2225 motion.acceleration_x = acceleration_x;
2226 motion.has_acceleration_y = has_acceleration_y; 2226 motion.has_acceleration_y = has_acceleration_y;
2227 motion.acceleration_y = acceleration_y; 2227 motion.acceleration_y = acceleration_y;
2228 motion.has_acceleration_z = has_acceleration_z; 2228 motion.has_acceleration_z = has_acceleration_z;
2229 motion.acceleration_z = acceleration_z; 2229 motion.acceleration_z = acceleration_z;
2230 2230
2231 // accelerationIncludingGravity 2231 // accelerationIncludingGravity
(...skipping 583 matching lines...) Expand 10 before | Expand all | Expand 10 after
2815 2815
2816 void TestRunner::NotifyDone() { 2816 void TestRunner::NotifyDone() {
2817 if (layout_test_runtime_flags_.wait_until_done() && !topLoadingFrame() && 2817 if (layout_test_runtime_flags_.wait_until_done() && !topLoadingFrame() &&
2818 !will_navigate_ && work_queue_.is_empty()) 2818 !will_navigate_ && work_queue_.is_empty())
2819 delegate_->TestFinished(); 2819 delegate_->TestFinished();
2820 layout_test_runtime_flags_.set_wait_until_done(false); 2820 layout_test_runtime_flags_.set_wait_until_done(false);
2821 OnLayoutTestRuntimeFlagsChanged(); 2821 OnLayoutTestRuntimeFlagsChanged();
2822 } 2822 }
2823 2823
2824 } // namespace test_runner 2824 } // namespace test_runner
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698