| 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> |
| 11 #include <memory> | 11 #include <memory> |
| 12 #include <set> | 12 #include <set> |
| 13 #include <string> | 13 #include <string> |
| 14 #include <vector> | 14 #include <vector> |
| 15 | 15 |
| 16 #include "base/macros.h" | 16 #include "base/macros.h" |
| 17 #include "base/memory/weak_ptr.h" | 17 #include "base/memory/weak_ptr.h" |
| 18 #include "components/test_runner/layout_test_runtime_flags.h" | 18 #include "components/test_runner/layout_test_runtime_flags.h" |
| 19 #include "components/test_runner/test_runner_export.h" | 19 #include "components/test_runner/test_runner_export.h" |
| 20 #include "components/test_runner/web_test_runner.h" | 20 #include "components/test_runner/web_test_runner.h" |
| 21 #include "third_party/WebKit/public/platform/WebEffectiveConnectionType.h" | 21 #include "third_party/WebKit/public/platform/WebEffectiveConnectionType.h" |
| 22 #include "third_party/WebKit/public/platform/WebImage.h" | 22 #include "third_party/WebKit/public/platform/WebImage.h" |
| 23 #include "v8/include/v8.h" | 23 #include "v8/include/v8.h" |
| 24 | 24 |
| 25 class GURL; | 25 class GURL; |
| 26 class SkBitmap; | 26 class SkBitmap; |
| 27 | 27 |
| 28 namespace base { |
| 29 class NullableString16; |
| 30 } |
| 31 |
| 28 namespace blink { | 32 namespace blink { |
| 29 class WebContentSettingsClient; | 33 class WebContentSettingsClient; |
| 30 class WebFrame; | 34 class WebFrame; |
| 31 class WebLocalFrame; | 35 class WebLocalFrame; |
| 32 class WebString; | 36 class WebString; |
| 33 class WebView; | 37 class WebView; |
| 34 class WebWidget; | 38 class WebWidget; |
| 35 } | 39 } |
| 36 | 40 |
| 37 namespace gin { | 41 namespace gin { |
| (...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 522 const std::string& platform); | 526 const std::string& platform); |
| 523 | 527 |
| 524 // Calls setlocale(LC_ALL, ...) for a specified locale. | 528 // Calls setlocale(LC_ALL, ...) for a specified locale. |
| 525 // Resets between tests. | 529 // Resets between tests. |
| 526 void SetPOSIXLocale(const std::string& locale); | 530 void SetPOSIXLocale(const std::string& locale); |
| 527 | 531 |
| 528 // MIDI function to control permission handling. | 532 // MIDI function to control permission handling. |
| 529 void SetMIDIAccessorResult(bool result); | 533 void SetMIDIAccessorResult(bool result); |
| 530 | 534 |
| 531 // Simulates a click on a Web Notification. | 535 // Simulates a click on a Web Notification. |
| 532 void SimulateWebNotificationClick(const std::string& title, int action_index); | 536 void SimulateWebNotificationClick(const std::string& title, |
| 537 int action_index, |
| 538 const base::NullableString16& reply); |
| 533 | 539 |
| 534 // Simulates closing a Web Notification. | 540 // Simulates closing a Web Notification. |
| 535 void SimulateWebNotificationClose(const std::string& title, bool by_user); | 541 void SimulateWebNotificationClose(const std::string& title, bool by_user); |
| 536 | 542 |
| 537 // Speech recognition related functions. | 543 // Speech recognition related functions. |
| 538 void AddMockSpeechRecognitionResult(const std::string& transcript, | 544 void AddMockSpeechRecognitionResult(const std::string& transcript, |
| 539 double confidence); | 545 double confidence); |
| 540 void SetMockSpeechRecognitionError(const std::string& error, | 546 void SetMockSpeechRecognitionError(const std::string& error, |
| 541 const std::string& message); | 547 const std::string& message); |
| 542 | 548 |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 656 blink::WebEffectiveConnectionType effective_connection_type_; | 662 blink::WebEffectiveConnectionType effective_connection_type_; |
| 657 | 663 |
| 658 base::WeakPtrFactory<TestRunner> weak_factory_; | 664 base::WeakPtrFactory<TestRunner> weak_factory_; |
| 659 | 665 |
| 660 DISALLOW_COPY_AND_ASSIGN(TestRunner); | 666 DISALLOW_COPY_AND_ASSIGN(TestRunner); |
| 661 }; | 667 }; |
| 662 | 668 |
| 663 } // namespace test_runner | 669 } // namespace test_runner |
| 664 | 670 |
| 665 #endif // COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_ | 671 #endif // COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_ |
| OLD | NEW |