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 #ifndef CONTENT_SHELL_TEST_RUNNER_TEST_RUNNER_H_ | 5 #ifndef CONTENT_SHELL_TEST_RUNNER_TEST_RUNNER_H_ |
6 #define CONTENT_SHELL_TEST_RUNNER_TEST_RUNNER_H_ | 6 #define CONTENT_SHELL_TEST_RUNNER_TEST_RUNNER_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <deque> | 10 #include <deque> |
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
277 // all tests that rely on this... well, unfortunate behavior. See | 277 // all tests that rely on this... well, unfortunate behavior. See |
278 // http://crbug.com/309760 for the plan. | 278 // http://crbug.com/309760 for the plan. |
279 void UseUnfortunateSynchronousResizeMode(); | 279 void UseUnfortunateSynchronousResizeMode(); |
280 | 280 |
281 bool EnableAutoResizeMode(int min_width, | 281 bool EnableAutoResizeMode(int min_width, |
282 int min_height, | 282 int min_height, |
283 int max_width, | 283 int max_width, |
284 int max_height); | 284 int max_height); |
285 bool DisableAutoResizeMode(int new_width, int new_height); | 285 bool DisableAutoResizeMode(int new_width, int new_height); |
286 | 286 |
287 void SetMockDeviceLight(double value); | |
288 void ResetDeviceLight(); | |
289 // Device Motion / Device Orientation related functions | 287 // Device Motion / Device Orientation related functions |
290 void SetMockDeviceMotion(bool has_acceleration_x, | 288 void SetMockDeviceMotion(bool has_acceleration_x, |
291 double acceleration_x, | 289 double acceleration_x, |
292 bool has_acceleration_y, | 290 bool has_acceleration_y, |
293 double acceleration_y, | 291 double acceleration_y, |
294 bool has_acceleration_z, | 292 bool has_acceleration_z, |
295 double acceleration_z, | 293 double acceleration_z, |
296 bool has_acceleration_including_gravity_x, | 294 bool has_acceleration_including_gravity_x, |
297 double acceleration_including_gravity_x, | 295 double acceleration_including_gravity_x, |
298 bool has_acceleration_including_gravity_y, | 296 bool has_acceleration_including_gravity_y, |
(...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
667 bool disable_v8_cache_ = false; | 665 bool disable_v8_cache_ = false; |
668 | 666 |
669 base::WeakPtrFactory<TestRunner> weak_factory_; | 667 base::WeakPtrFactory<TestRunner> weak_factory_; |
670 | 668 |
671 DISALLOW_COPY_AND_ASSIGN(TestRunner); | 669 DISALLOW_COPY_AND_ASSIGN(TestRunner); |
672 }; | 670 }; |
673 | 671 |
674 } // namespace test_runner | 672 } // namespace test_runner |
675 | 673 |
676 #endif // CONTENT_SHELL_TEST_RUNNER_TEST_RUNNER_H_ | 674 #endif // CONTENT_SHELL_TEST_RUNNER_TEST_RUNNER_H_ |
OLD | NEW |