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

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

Issue 11565036: [content shell] use WebTestRunner::WebPreferences for layout tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 8 years 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_RUNNER_H_ 5 #ifndef CONTENT_SHELL_WEBKIT_TEST_RUNNER_H_
6 #define CONTENT_SHELL_WEBKIT_TEST_RUNNER_H_ 6 #define CONTENT_SHELL_WEBKIT_TEST_RUNNER_H_
7 7
8 #include "base/file_path.h" 8 #include "base/file_path.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "content/public/renderer/render_view_observer.h" 10 #include "content/public/renderer/render_view_observer.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 virtual void setGamepadData(const WebKit::WebGamepads& gamepads); 50 virtual void setGamepadData(const WebKit::WebGamepads& gamepads);
51 virtual void printMessage(const std::string& message); 51 virtual void printMessage(const std::string& message);
52 virtual void postTask(WebTestRunner::WebTask* task); 52 virtual void postTask(WebTestRunner::WebTask* task);
53 virtual void postDelayedTask(WebTestRunner::WebTask* task, 53 virtual void postDelayedTask(WebTestRunner::WebTask* task,
54 long long ms); 54 long long ms);
55 virtual WebKit::WebString registerIsolatedFileSystem( 55 virtual WebKit::WebString registerIsolatedFileSystem(
56 const WebKit::WebVector<WebKit::WebString>& absolute_filenames); 56 const WebKit::WebVector<WebKit::WebString>& absolute_filenames);
57 virtual long long getCurrentTimeInMillisecond(); 57 virtual long long getCurrentTimeInMillisecond();
58 virtual WebKit::WebString getAbsoluteWebStringFromUTF8Path( 58 virtual WebKit::WebString getAbsoluteWebStringFromUTF8Path(
59 const std::string& utf8_path); 59 const std::string& utf8_path);
60 virtual WebTestRunner::WebPreferences* preferences();
61 virtual void applyPreferences();
60 62
61 void Reset(); 63 void Reset();
62 void Display(); 64 void Display();
63 void SetXSSAuditorEnabled(bool enabled); 65 void SetXSSAuditorEnabled(bool enabled);
64 void NotifyDone(); 66 void NotifyDone();
65 void DumpAsText(); 67 void DumpAsText();
66 void DumpChildFramesAsText(); 68 void DumpChildFramesAsText();
67 void SetPrinting(); 69 void SetPrinting();
68 void SetShouldStayOnPageAfterHandlingBeforeUnload(bool should_stay_on_page); 70 void SetShouldStayOnPageAfterHandlingBeforeUnload(bool should_stay_on_page);
69 void WaitUntilDone(); 71 void WaitUntilDone();
(...skipping 24 matching lines...) Expand all
94 WebTestRunner::WebTestProxyBase* proxy_; 96 WebTestRunner::WebTestProxyBase* proxy_;
95 97
96 ShellWebPreferences prefs_; 98 ShellWebPreferences prefs_;
97 99
98 DISALLOW_COPY_AND_ASSIGN(WebKitTestRunner); 100 DISALLOW_COPY_AND_ASSIGN(WebKitTestRunner);
99 }; 101 };
100 102
101 } // namespace content 103 } // namespace content
102 104
103 #endif // CONTENT_SHELL_WEBKIT_TEST_RUNNER_H_ 105 #endif // CONTENT_SHELL_WEBKIT_TEST_RUNNER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698