OLD | NEW |
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 <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 virtual void setLocale(const std::string& locale) OVERRIDE; | 100 virtual void setLocale(const std::string& locale) OVERRIDE; |
101 virtual void testFinished() OVERRIDE; | 101 virtual void testFinished() OVERRIDE; |
102 virtual void closeRemainingWindows() OVERRIDE; | 102 virtual void closeRemainingWindows() OVERRIDE; |
103 virtual void deleteAllCookies() OVERRIDE; | 103 virtual void deleteAllCookies() OVERRIDE; |
104 virtual int navigationEntryCount() OVERRIDE; | 104 virtual int navigationEntryCount() OVERRIDE; |
105 virtual void goToOffset(int offset) OVERRIDE; | 105 virtual void goToOffset(int offset) OVERRIDE; |
106 virtual void reload() OVERRIDE; | 106 virtual void reload() OVERRIDE; |
107 virtual void loadURLForFrame(const blink::WebURL& url, | 107 virtual void loadURLForFrame(const blink::WebURL& url, |
108 const std::string& frame_name) OVERRIDE; | 108 const std::string& frame_name) OVERRIDE; |
109 virtual bool allowExternalPages() OVERRIDE; | 109 virtual bool allowExternalPages() OVERRIDE; |
110 virtual void captureHistoryForWindow( | 110 virtual std::string dumpHistoryForWindow(WebTestProxyBase* proxy) OVERRIDE; |
111 WebTestProxyBase* proxy, | |
112 blink::WebVector<blink::WebHistoryItem>* history, | |
113 size_t* currentEntryIndex) OVERRIDE; | |
114 | 111 |
115 void Reset(); | 112 void Reset(); |
116 | 113 |
117 void set_proxy(WebTestProxyBase* proxy) { proxy_ = proxy; } | 114 void set_proxy(WebTestProxyBase* proxy) { proxy_ = proxy; } |
118 WebTestProxyBase* proxy() const { return proxy_; } | 115 WebTestProxyBase* proxy() const { return proxy_; } |
119 | 116 |
120 void ReportLeakDetectionResult(const LeakDetectionResult& result); | 117 void ReportLeakDetectionResult(const LeakDetectionResult& result); |
121 | 118 |
122 private: | 119 private: |
123 // Message handlers. | 120 // Message handlers. |
(...skipping 28 matching lines...) Expand all Loading... |
152 | 149 |
153 scoped_ptr<LeakDetector> leak_detector_; | 150 scoped_ptr<LeakDetector> leak_detector_; |
154 bool needs_leak_detector_; | 151 bool needs_leak_detector_; |
155 | 152 |
156 DISALLOW_COPY_AND_ASSIGN(WebKitTestRunner); | 153 DISALLOW_COPY_AND_ASSIGN(WebKitTestRunner); |
157 }; | 154 }; |
158 | 155 |
159 } // namespace content | 156 } // namespace content |
160 | 157 |
161 #endif // CONTENT_SHELL_WEBKIT_TEST_RUNNER_H_ | 158 #endif // CONTENT_SHELL_WEBKIT_TEST_RUNNER_H_ |
OLD | NEW |