| 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 460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 471 | 471 |
| 472 // Used to set the device scale factor. | 472 // Used to set the device scale factor. |
| 473 void SetBackingScaleFactor(double value, v8::Handle<v8::Function> callback); | 473 void SetBackingScaleFactor(double value, v8::Handle<v8::Function> callback); |
| 474 | 474 |
| 475 // Calls setlocale(LC_ALL, ...) for a specified locale. | 475 // Calls setlocale(LC_ALL, ...) for a specified locale. |
| 476 // Resets between tests. | 476 // Resets between tests. |
| 477 void SetPOSIXLocale(const std::string& locale); | 477 void SetPOSIXLocale(const std::string& locale); |
| 478 | 478 |
| 479 // MIDI function to control permission handling. | 479 // MIDI function to control permission handling. |
| 480 void SetMIDIAccessorResult(bool result); | 480 void SetMIDIAccessorResult(bool result); |
| 481 void SetMIDISysExPermission(bool value); | 481 void SetMIDISysexPermission(bool value); |
| 482 | 482 |
| 483 // Grants permission for desktop notifications to an origin | 483 // Grants permission for desktop notifications to an origin |
| 484 void GrantWebNotificationPermission(const std::string& origin, | 484 void GrantWebNotificationPermission(const std::string& origin, |
| 485 bool permission_granted); | 485 bool permission_granted); |
| 486 // Simulates a click on a desktop notification. | 486 // Simulates a click on a desktop notification. |
| 487 bool SimulateWebNotificationClick(const std::string& value); | 487 bool SimulateWebNotificationClick(const std::string& value); |
| 488 | 488 |
| 489 // Speech input related functions. | 489 // Speech input related functions. |
| 490 void AddMockSpeechInputResult(const std::string& result, | 490 void AddMockSpeechInputResult(const std::string& result, |
| 491 double confidence, | 491 double confidence, |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 697 bool use_mock_theme_; | 697 bool use_mock_theme_; |
| 698 | 698 |
| 699 base::WeakPtrFactory<TestRunner> weak_factory_; | 699 base::WeakPtrFactory<TestRunner> weak_factory_; |
| 700 | 700 |
| 701 DISALLOW_COPY_AND_ASSIGN(TestRunner); | 701 DISALLOW_COPY_AND_ASSIGN(TestRunner); |
| 702 }; | 702 }; |
| 703 | 703 |
| 704 } // namespace content | 704 } // namespace content |
| 705 | 705 |
| 706 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_ | 706 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_ |
| OLD | NEW |