Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(122)

Side by Side Diff: components/test_runner/test_runner.h

Issue 1896623002: Setting TestRunner's main window from BlinkTestRunner. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@replicate-across-all-renderers
Patch Set: Rebasing... Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « components/test_runner/test_interfaces.cc ('k') | components/test_runner/test_runner.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 // - LayoutTestRuntimeFlags 68 // - LayoutTestRuntimeFlags
69 class TestRunner : public WebTestRunner { 69 class TestRunner : public WebTestRunner {
70 public: 70 public:
71 explicit TestRunner(TestInterfaces*); 71 explicit TestRunner(TestInterfaces*);
72 virtual ~TestRunner(); 72 virtual ~TestRunner();
73 73
74 void Install(blink::WebLocalFrame* frame, 74 void Install(blink::WebLocalFrame* frame,
75 base::WeakPtr<TestRunnerForSpecificView> view_test_runner); 75 base::WeakPtr<TestRunnerForSpecificView> view_test_runner);
76 76
77 void SetDelegate(WebTestDelegate*); 77 void SetDelegate(WebTestDelegate*);
78 void SetWebView(blink::WebView*); 78 void SetMainView(blink::WebView*);
79 79
80 void Reset(); 80 void Reset();
81 81
82 void SetTestIsRunning(bool); 82 void SetTestIsRunning(bool);
83 bool TestIsRunning() const { return test_is_running_; } 83 bool TestIsRunning() const { return test_is_running_; }
84 84
85 bool UseMockTheme() const { return use_mock_theme_; } 85 bool UseMockTheme() const { return use_mock_theme_; }
86 86
87 // WebTestRunner implementation. 87 // WebTestRunner implementation.
88 bool ShouldGeneratePixelResults() override; 88 bool ShouldGeneratePixelResults() override;
(...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after
596 bool has_custom_text_output_; 596 bool has_custom_text_output_;
597 std::string custom_text_output_; 597 std::string custom_text_output_;
598 598
599 std::set<std::string> http_headers_to_clear_; 599 std::set<std::string> http_headers_to_clear_;
600 600
601 // WAV audio data is stored here. 601 // WAV audio data is stored here.
602 std::vector<unsigned char> audio_data_; 602 std::vector<unsigned char> audio_data_;
603 603
604 TestInterfaces* test_interfaces_; 604 TestInterfaces* test_interfaces_;
605 WebTestDelegate* delegate_; 605 WebTestDelegate* delegate_;
606 blink::WebView* web_view_; 606 blink::WebView* main_view_;
607 607
608 // This is non-0 IFF a load is in progress. 608 // This is non-0 IFF a load is in progress.
609 blink::WebFrame* top_loading_frame_; 609 blink::WebFrame* top_loading_frame_;
610 610
611 // WebContentSettingsClient mock object. 611 // WebContentSettingsClient mock object.
612 std::unique_ptr<MockContentSettingsClient> mock_content_settings_client_; 612 std::unique_ptr<MockContentSettingsClient> mock_content_settings_client_;
613 613
614 bool use_mock_theme_; 614 bool use_mock_theme_;
615 615
616 std::unique_ptr<MockCredentialManagerClient> credential_manager_client_; 616 std::unique_ptr<MockCredentialManagerClient> credential_manager_client_;
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
828 WebTestProxyBase* web_test_proxy_base_; 828 WebTestProxyBase* web_test_proxy_base_;
829 829
830 base::WeakPtrFactory<TestRunnerForSpecificView> weak_factory_; 830 base::WeakPtrFactory<TestRunnerForSpecificView> weak_factory_;
831 831
832 DISALLOW_COPY_AND_ASSIGN(TestRunnerForSpecificView); 832 DISALLOW_COPY_AND_ASSIGN(TestRunnerForSpecificView);
833 }; 833 };
834 834
835 } // namespace test_runner 835 } // namespace test_runner
836 836
837 #endif // COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_ 837 #endif // COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_
OLDNEW
« no previous file with comments | « components/test_runner/test_interfaces.cc ('k') | components/test_runner/test_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698