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

Side by Side Diff: webkit/tools/test_shell/test_shell.h

Issue 12163003: Add FilePath to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_H_ 5 #ifndef WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_H_
6 #define WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_H_ 6 #define WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_H_
7 7
8 8
9 #include <list> 9 #include <list>
10 #include <map> 10 #include <map>
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 public: 52 public:
53 struct TestParams { 53 struct TestParams {
54 // Load the test defaults. 54 // Load the test defaults.
55 TestParams(); 55 TestParams();
56 56
57 // The kind of output we want from this test. 57 // The kind of output we want from this test.
58 bool dump_tree; 58 bool dump_tree;
59 bool dump_pixels; 59 bool dump_pixels;
60 60
61 // Filename we dump pixels to (when pixel testing is enabled). 61 // Filename we dump pixels to (when pixel testing is enabled).
62 FilePath pixel_file_name; 62 base::FilePath pixel_file_name;
63 // The md5 hash of the bitmap dump (when pixel testing is enabled). 63 // The md5 hash of the bitmap dump (when pixel testing is enabled).
64 std::string pixel_hash; 64 std::string pixel_hash;
65 // URL of the test. 65 // URL of the test.
66 std::string test_url; 66 std::string test_url;
67 }; 67 };
68 68
69 TestShell(); 69 TestShell();
70 virtual ~TestShell(); 70 virtual ~TestShell();
71 71
72 // Initialization and clean up of logging. 72 // Initialization and clean up of logging.
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 // Resets TestWebViewDelegate. Should be called before loading a page, 143 // Resets TestWebViewDelegate. Should be called before loading a page,
144 // since some end-editing event notifications may arrive after the previous 144 // since some end-editing event notifications may arrive after the previous
145 // page has finished dumping its text and therefore end up in the next 145 // page has finished dumping its text and therefore end up in the next
146 // test's results if the messages are still enabled. 146 // test's results if the messages are still enabled.
147 void ResetTestController(); 147 void ResetTestController();
148 148
149 bool AcceptsEditing() { 149 bool AcceptsEditing() {
150 return true; 150 return true;
151 } 151 }
152 152
153 void LoadFile(const FilePath& file); 153 void LoadFile(const base::FilePath& file);
154 void LoadURL(const GURL& url); 154 void LoadURL(const GURL& url);
155 void LoadURLForFrame(const GURL& url, const string16& frame_name); 155 void LoadURLForFrame(const GURL& url, const string16& frame_name);
156 void GoBackOrForward(int offset); 156 void GoBackOrForward(int offset);
157 void Reload(); 157 void Reload();
158 bool Navigate(const TestNavigationEntry& entry, bool reload); 158 bool Navigate(const TestNavigationEntry& entry, bool reload);
159 159
160 bool PromptForSaveFile(const wchar_t* prompt_title, FilePath* result); 160 bool PromptForSaveFile(const wchar_t* prompt_title, base::FilePath* result);
161 string16 GetDocumentText(); 161 string16 GetDocumentText();
162 void DumpDocumentText(); 162 void DumpDocumentText();
163 void DumpRenderTree(); 163 void DumpRenderTree();
164 164
165 gfx::NativeWindow mainWnd() const { return m_mainWnd; } 165 gfx::NativeWindow mainWnd() const { return m_mainWnd; }
166 gfx::NativeView webViewWnd() const { return m_webViewHost->view_handle(); } 166 gfx::NativeView webViewWnd() const { return m_webViewHost->view_handle(); }
167 gfx::NativeEditView editWnd() const { return m_editWnd; } 167 gfx::NativeEditView editWnd() const { return m_editWnd; }
168 gfx::NativeView popupWnd() const { return m_popupHost->view_handle(); } 168 gfx::NativeView popupWnd() const { return m_popupHost->view_handle(); }
169 169
170 static WindowList* windowList() { return window_list_; } 170 static WindowList* windowList() { return window_list_; }
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
402 #if defined(OS_WIN) 402 #if defined(OS_WIN)
403 // Used by the watchdog to know when it's finished. 403 // Used by the watchdog to know when it's finished.
404 HANDLE finished_event_; 404 HANDLE finished_event_;
405 #endif 405 #endif
406 406
407 // Dump the stats table counters on exit. 407 // Dump the stats table counters on exit.
408 bool dump_stats_table_on_exit_; 408 bool dump_stats_table_on_exit_;
409 }; 409 };
410 410
411 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_H_ 411 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_H_
OLDNEW
« no previous file with comments | « webkit/tools/test_shell/simple_resource_loader_bridge.cc ('k') | webkit/tools/test_shell/test_shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698