| 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 COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_ | 5 #ifndef COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_ |
| 6 #define COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_ | 6 #define COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <deque> | 10 #include <deque> |
| (...skipping 512 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 523 void SetBackingScaleFactor(double value, v8::Local<v8::Function> callback); | 523 void SetBackingScaleFactor(double value, v8::Local<v8::Function> callback); |
| 524 | 524 |
| 525 // Enable zoom-for-dsf option. | 525 // Enable zoom-for-dsf option. |
| 526 // TODO(oshima): Remove this once all platforms migrated. | 526 // TODO(oshima): Remove this once all platforms migrated. |
| 527 void EnableUseZoomForDSF(v8::Local<v8::Function> callback); | 527 void EnableUseZoomForDSF(v8::Local<v8::Function> callback); |
| 528 | 528 |
| 529 // Change the device color profile while running a layout test. | 529 // Change the device color profile while running a layout test. |
| 530 void SetColorProfile(const std::string& name, | 530 void SetColorProfile(const std::string& name, |
| 531 v8::Local<v8::Function> callback); | 531 v8::Local<v8::Function> callback); |
| 532 | 532 |
| 533 // Change the bluetooth test data while running a layout test and resets the | 533 // Change the bluetooth test data while running a layout test. |
| 534 // chooser to accept the first device. | 534 void SetBluetoothFakeAdapter(const std::string& adapter_name, |
| 535 void SetBluetoothMockDataSet(const std::string& name); | 535 v8::Local<v8::Function> callback); |
| 536 | 536 |
| 537 // Makes the Bluetooth chooser record its input and wait for instructions from | 537 // If |enable| is true, makes the Bluetooth chooser record its input and wait |
| 538 // the test program on how to proceed. | 538 // for instructions from the test program on how to proceed. Otherwise falls |
| 539 void SetBluetoothManualChooser(); | 539 // back to the browser's default chooser. |
| 540 void SetBluetoothManualChooser(bool enable); |
| 540 | 541 |
| 541 // Calls |callback| with a DOMString[] representing the events recorded since | 542 // Calls |callback| with a DOMString[] representing the events recorded since |
| 542 // the last call to this function. | 543 // the last call to this function. |
| 543 void GetBluetoothManualChooserEvents(v8::Local<v8::Function> callback); | 544 void GetBluetoothManualChooserEvents(v8::Local<v8::Function> callback); |
| 544 | 545 |
| 545 // Calls the BluetoothChooser::EventHandler with the arguments here. Valid | 546 // Calls the BluetoothChooser::EventHandler with the arguments here. Valid |
| 546 // event strings are: | 547 // event strings are: |
| 547 // * "cancel" - simulates the user canceling the chooser. | 548 // * "cancel" - simulates the user canceling the chooser. |
| 548 // * "select" - simulates the user selecting a device whose device ID is in | 549 // * "select" - simulates the user selecting a device whose device ID is in |
| 549 // |argument|. | 550 // |argument|. |
| (...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 819 scoped_ptr<MockScreenOrientationClient> mock_screen_orientation_client_; | 820 scoped_ptr<MockScreenOrientationClient> mock_screen_orientation_client_; |
| 820 | 821 |
| 821 base::WeakPtrFactory<TestRunner> weak_factory_; | 822 base::WeakPtrFactory<TestRunner> weak_factory_; |
| 822 | 823 |
| 823 DISALLOW_COPY_AND_ASSIGN(TestRunner); | 824 DISALLOW_COPY_AND_ASSIGN(TestRunner); |
| 824 }; | 825 }; |
| 825 | 826 |
| 826 } // namespace test_runner | 827 } // namespace test_runner |
| 827 | 828 |
| 828 #endif // COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_ | 829 #endif // COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_ |
| OLD | NEW |