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

Side by Side Diff: content/shell/browser/layout_test/blink_test_controller.h

Issue 2678043002: Hide console log messages for imported WPT tests (Closed)
Patch Set: update platform specific expected files missed last time around Created 3 years, 9 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 | « no previous file | content/shell/browser/layout_test/blink_test_controller.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_BROWSER_LAYOUT_TEST_BLINK_TEST_CONTROLLER_H_ 5 #ifndef CONTENT_SHELL_BROWSER_LAYOUT_TEST_BLINK_TEST_CONTROLLER_H_
6 #define CONTENT_SHELL_BROWSER_LAYOUT_TEST_BLINK_TEST_CONTROLLER_H_ 6 #define CONTENT_SHELL_BROWSER_LAYOUT_TEST_BLINK_TEST_CONTROLLER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 #include <ostream> 10 #include <ostream>
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 78
79 void PrintImageHeader(const std::string& actual_hash, 79 void PrintImageHeader(const std::string& actual_hash,
80 const std::string& expected_hash); 80 const std::string& expected_hash);
81 void PrintImageBlock(const std::vector<unsigned char>& png_image); 81 void PrintImageBlock(const std::vector<unsigned char>& png_image);
82 void PrintImageFooter(); 82 void PrintImageFooter();
83 83
84 void PrintAudioHeader(); 84 void PrintAudioHeader();
85 void PrintAudioBlock(const std::vector<unsigned char>& audio_data); 85 void PrintAudioBlock(const std::vector<unsigned char>& audio_data);
86 void PrintAudioFooter(); 86 void PrintAudioFooter();
87 87
88 void AddMessageToStderr(const std::string& message);
88 void AddMessage(const std::string& message); 89 void AddMessage(const std::string& message);
89 void AddMessageRaw(const std::string& message); 90 void AddMessageRaw(const std::string& message);
90 void AddErrorMessage(const std::string& message); 91 void AddErrorMessage(const std::string& message);
91 92
92 void CloseStderr(); 93 void CloseStderr();
93 94
94 private: 95 private:
95 void PrintEncodedBinaryData(const std::vector<unsigned char>& data); 96 void PrintEncodedBinaryData(const std::vector<unsigned char>& data);
96 97
97 enum State { 98 enum State {
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 static BlinkTestController* instance_; 196 static BlinkTestController* instance_;
196 197
197 void DiscardMainWindow(); 198 void DiscardMainWindow();
198 199
199 // Message handlers. 200 // Message handlers.
200 void OnAudioDump(const std::vector<unsigned char>& audio_dump); 201 void OnAudioDump(const std::vector<unsigned char>& audio_dump);
201 void OnImageDump(const std::string& actual_pixel_hash, const SkBitmap& image); 202 void OnImageDump(const std::string& actual_pixel_hash, const SkBitmap& image);
202 void OnTextDump(const std::string& dump); 203 void OnTextDump(const std::string& dump);
203 void OnInitiateLayoutDump(); 204 void OnInitiateLayoutDump();
204 void OnLayoutDumpResponse(RenderFrameHost* sender, const std::string& dump); 205 void OnLayoutDumpResponse(RenderFrameHost* sender, const std::string& dump);
206 void OnPrintMessageToStderr(const std::string& message);
205 void OnPrintMessage(const std::string& message); 207 void OnPrintMessage(const std::string& message);
206 void OnOverridePreferences(const WebPreferences& prefs); 208 void OnOverridePreferences(const WebPreferences& prefs);
207 void OnTestFinished(); 209 void OnTestFinished();
208 void OnClearDevToolsLocalStorage(); 210 void OnClearDevToolsLocalStorage();
209 void OnShowDevTools(const std::string& settings, 211 void OnShowDevTools(const std::string& settings,
210 const std::string& frontend_url); 212 const std::string& frontend_url);
211 void OnEvaluateInDevTools(int call_id, const std::string& script); 213 void OnEvaluateInDevTools(int call_id, const std::string& script);
212 void OnCloseDevTools(); 214 void OnCloseDevTools();
213 void OnGoToOffset(int offset); 215 void OnGoToOffset(int offset);
214 void OnReload(); 216 void OnReload();
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 // waiting on the UI thread while layout tests are being ran. 296 // waiting on the UI thread while layout tests are being ran.
295 ScopedAllowWaitForAndroidLayoutTests reduced_restrictions_; 297 ScopedAllowWaitForAndroidLayoutTests reduced_restrictions_;
296 #endif 298 #endif
297 299
298 DISALLOW_COPY_AND_ASSIGN(BlinkTestController); 300 DISALLOW_COPY_AND_ASSIGN(BlinkTestController);
299 }; 301 };
300 302
301 } // namespace content 303 } // namespace content
302 304
303 #endif // CONTENT_SHELL_BROWSER_LAYOUT_TEST_BLINK_TEST_CONTROLLER_H_ 305 #endif // CONTENT_SHELL_BROWSER_LAYOUT_TEST_BLINK_TEST_CONTROLLER_H_
OLDNEW
« no previous file with comments | « no previous file | content/shell/browser/layout_test/blink_test_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698