Chromium Code Reviews| 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 // Disables mock geofencing service while running a layout test. | |
|
pfeldman
2014/12/10 08:59:52
Blank line above the comment please.
Marijn Kruisselbrink
2014/12/10 18:13:37
Done.
| |
| 518 void ClearGeofencingMockProvider(); | |
| 519 // Set the mock geofencing position while running a layout test. | |
| 520 void SetGeofencingMockPosition(double latitude, double longitude); | |
| 521 | |
| 513 // Calls setlocale(LC_ALL, ...) for a specified locale. | 522 // Calls setlocale(LC_ALL, ...) for a specified locale. |
| 514 // Resets between tests. | 523 // Resets between tests. |
| 515 void SetPOSIXLocale(const std::string& locale); | 524 void SetPOSIXLocale(const std::string& locale); |
| 516 | 525 |
| 517 // MIDI function to control permission handling. | 526 // MIDI function to control permission handling. |
| 518 void SetMIDIAccessorResult(bool result); | 527 void SetMIDIAccessorResult(bool result); |
| 519 void SetMIDISysexPermission(bool value); | 528 void SetMIDISysexPermission(bool value); |
| 520 | 529 |
| 521 // Grants permission for desktop notifications to an origin | 530 // Grants permission for desktop notifications to an origin |
| 522 void GrantWebNotificationPermission(const GURL& origin, | 531 void GrantWebNotificationPermission(const GURL& origin, |
| (...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 787 bool use_mock_theme_; | 796 bool use_mock_theme_; |
| 788 | 797 |
| 789 base::WeakPtrFactory<TestRunner> weak_factory_; | 798 base::WeakPtrFactory<TestRunner> weak_factory_; |
| 790 | 799 |
| 791 DISALLOW_COPY_AND_ASSIGN(TestRunner); | 800 DISALLOW_COPY_AND_ASSIGN(TestRunner); |
| 792 }; | 801 }; |
| 793 | 802 |
| 794 } // namespace content | 803 } // namespace content |
| 795 | 804 |
| 796 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_ | 805 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_ |
| OLD | NEW |