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

Side by Side Diff: content/shell/webkit_test_controller.h

Issue 13795002: [content shell] add support for invoking testRunner.notifyDone in a different process (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_WEBKIT_TEST_CONTROLLER_H_ 5 #ifndef CONTENT_SHELL_WEBKIT_TEST_CONTROLLER_H_
6 #define CONTENT_SHELL_WEBKIT_TEST_CONTROLLER_H_ 6 #define CONTENT_SHELL_WEBKIT_TEST_CONTROLLER_H_
7 7
8 #include <ostream> 8 #include <ostream>
9 #include <string> 9 #include <string>
10 10
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 const base::FilePath& current_working_directory, 87 const base::FilePath& current_working_directory,
88 bool enable_pixel_dumping, 88 bool enable_pixel_dumping,
89 const std::string& expected_pixel_hash); 89 const std::string& expected_pixel_hash);
90 // True if the controller was reset successfully. 90 // True if the controller was reset successfully.
91 bool ResetAfterLayoutTest(); 91 bool ResetAfterLayoutTest();
92 92
93 void SetTempPath(const base::FilePath& temp_path); 93 void SetTempPath(const base::FilePath& temp_path);
94 void RendererUnresponsive(); 94 void RendererUnresponsive();
95 void OverrideWebkitPrefs(webkit_glue::WebPreferences* prefs); 95 void OverrideWebkitPrefs(webkit_glue::WebPreferences* prefs);
96 void OpenURL(const GURL& url); 96 void OpenURL(const GURL& url);
97 void TestFinishedInSecondaryWindow();
97 98
98 WebKitTestResultPrinter* printer() { return printer_.get(); } 99 WebKitTestResultPrinter* printer() { return printer_.get(); }
99 void set_printer(WebKitTestResultPrinter* printer) { 100 void set_printer(WebKitTestResultPrinter* printer) {
100 printer_.reset(printer); 101 printer_.reset(printer);
101 } 102 }
102 103
103 // WebContentsObserver implementation. 104 // WebContentsObserver implementation.
104 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 105 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
105 virtual void PluginCrashed(const base::FilePath& plugin_path, 106 virtual void PluginCrashed(const base::FilePath& plugin_path,
106 base::ProcessId plugin_pid) OVERRIDE; 107 base::ProcessId plugin_pid) OVERRIDE;
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 base::CancelableClosure watchdog_; 174 base::CancelableClosure watchdog_;
174 175
175 NotificationRegistrar registrar_; 176 NotificationRegistrar registrar_;
176 177
177 DISALLOW_COPY_AND_ASSIGN(WebKitTestController); 178 DISALLOW_COPY_AND_ASSIGN(WebKitTestController);
178 }; 179 };
179 180
180 } // namespace content 181 } // namespace content
181 182
182 #endif // CONTENT_SHELL_WEBKIT_TEST_CONTROLLER_H_ 183 #endif // CONTENT_SHELL_WEBKIT_TEST_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698