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

Unified Diff: content/shell/layout_test_controller_host.h

Issue 10860037: [content shell] rename layout_test_controller{,_host,_bindings}.* to webkit_test_runner (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: patch for landing Created 8 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/shell/layout_test_controller_bindings.cc ('k') | content/shell/layout_test_controller_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/layout_test_controller_host.h
diff --git a/content/shell/layout_test_controller_host.h b/content/shell/layout_test_controller_host.h
deleted file mode 100644
index dfb30169e1e1df5c78da40b2bf44ffd05369e7c2..0000000000000000000000000000000000000000
--- a/content/shell/layout_test_controller_host.h
+++ /dev/null
@@ -1,74 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CONTENT_SHELL_LAYOUT_TEST_CONTROLLER_HOST_H_
-#define CONTENT_SHELL_LAYOUT_TEST_CONTROLLER_HOST_H_
-
-#include <map>
-#include <string>
-
-#include "base/cancelable_callback.h"
-#include "content/public/browser/render_view_host_observer.h"
-
-class SkBitmap;
-
-namespace content {
-
-class LayoutTestControllerHost : public RenderViewHostObserver {
- public:
- static LayoutTestControllerHost* FromRenderViewHost(
- RenderViewHost* render_view_host);
-
- // Initialize the LayoutTestControllerHost for a given test.
- static void Init(const std::string& expected_pixel_hash);
-
- explicit LayoutTestControllerHost(RenderViewHost* render_view_host);
- virtual ~LayoutTestControllerHost();
-
- bool should_stay_on_page_after_handling_before_unload() const {
- return should_stay_on_page_after_handling_before_unload_;
- }
-
- // RenderViewHostObserver implementation.
- virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
-
- private:
- void CaptureDump();
- void TimeoutHandler();
-
- // Message handlers.
- void OnDidFinishLoad();
- void OnTextDump(const std::string& dump);
- void OnImageDump(const std::string& actual_pixel_hash, const SkBitmap& image);
-
- // testRunner handlers.
- void OnNotifyDone();
- void OnDumpAsText();
- void OnDumpChildFramesAsText();
- void OnSetPrinting();
- void OnSetShouldStayOnPageAfterHandlingBeforeUnload(bool should_stay_on_page);
- void OnWaitUntilDone();
-
- void OnNotImplemented(const std::string& object_name,
- const std::string& method_name);
-
- static std::map<RenderViewHost*, LayoutTestControllerHost*> controllers_;
- static std::string expected_pixel_hash_;
-
- bool captured_dump_;
-
- bool dump_as_text_;
- bool dump_child_frames_;
- bool is_printing_;
- bool should_stay_on_page_after_handling_before_unload_;
- bool wait_until_done_;
-
- base::CancelableClosure watchdog_;
-
- DISALLOW_COPY_AND_ASSIGN(LayoutTestControllerHost);
-};
-
-} // namespace content
-
-#endif // CONTENT_SHELL_LAYOUT_TEST_CONTROLLER_HOST_H_
« no previous file with comments | « content/shell/layout_test_controller_bindings.cc ('k') | content/shell/layout_test_controller_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698