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_RENDERER_TEST_RUNNER_TEST_RUNNER_H_ | 5 #ifndef CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_ |
6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_ | 6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 492 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
503 // Used to set the device scale factor. | 503 // Used to set the device scale factor. |
504 void SetBackingScaleFactor(double value, v8::Handle<v8::Function> callback); | 504 void SetBackingScaleFactor(double value, v8::Handle<v8::Function> callback); |
505 | 505 |
506 // Change the device color profile while running a layout test. | 506 // Change the device color profile while running a layout test. |
507 void SetColorProfile(const std::string& name, | 507 void SetColorProfile(const std::string& name, |
508 v8::Handle<v8::Function> callback); | 508 v8::Handle<v8::Function> callback); |
509 | 509 |
510 // Change the bluetooth test data while running a layout test. | 510 // Change the bluetooth test data while running a layout test. |
511 void SetBluetoothMockDataSet(const std::string& name); | 511 void SetBluetoothMockDataSet(const std::string& name); |
512 | 512 |
| 513 // Enables mock geofencing service while running a layout test. |
| 514 // |service_available| indicates if the mock service should mock geofencing |
| 515 // being available or not. |
| 516 void SetGeofencingMockProvider(bool service_available); |
| 517 |
| 518 // Disables mock geofencing service while running a layout test. |
| 519 void ClearGeofencingMockProvider(); |
| 520 |
| 521 // Set the mock geofencing position while running a layout test. |
| 522 void SetGeofencingMockPosition(double latitude, double longitude); |
| 523 |
513 // Calls setlocale(LC_ALL, ...) for a specified locale. | 524 // Calls setlocale(LC_ALL, ...) for a specified locale. |
514 // Resets between tests. | 525 // Resets between tests. |
515 void SetPOSIXLocale(const std::string& locale); | 526 void SetPOSIXLocale(const std::string& locale); |
516 | 527 |
517 // MIDI function to control permission handling. | 528 // MIDI function to control permission handling. |
518 void SetMIDIAccessorResult(bool result); | 529 void SetMIDIAccessorResult(bool result); |
519 void SetMIDISysexPermission(bool value); | 530 void SetMIDISysexPermission(bool value); |
520 | 531 |
521 // Grants permission for desktop notifications to an origin | 532 // Grants permission for desktop notifications to an origin |
522 void GrantWebNotificationPermission(const GURL& origin, | 533 void GrantWebNotificationPermission(const GURL& origin, |
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
787 bool use_mock_theme_; | 798 bool use_mock_theme_; |
788 | 799 |
789 base::WeakPtrFactory<TestRunner> weak_factory_; | 800 base::WeakPtrFactory<TestRunner> weak_factory_; |
790 | 801 |
791 DISALLOW_COPY_AND_ASSIGN(TestRunner); | 802 DISALLOW_COPY_AND_ASSIGN(TestRunner); |
792 }; | 803 }; |
793 | 804 |
794 } // namespace content | 805 } // namespace content |
795 | 806 |
796 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_ | 807 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_ |
OLD | NEW |