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

Unified Diff: chrome/test/base/ui_test_utils.h

Issue 10916334: Enable webgl conformance tests under content/test/gpu in content_browsertests (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: namespace fixup Created 8 years, 3 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 | « build/android/pylib/single_test_runner.py ('k') | chrome/test/base/ui_test_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/base/ui_test_utils.h
diff --git a/chrome/test/base/ui_test_utils.h b/chrome/test/base/ui_test_utils.h
index 8ab40438eb4c9e1a5ea56c10b0431f9008fe5c17..b158e4cbc423f98e2ea8f5e7ccea45a5c952a4a5 100644
--- a/chrome/test/base/ui_test_utils.h
+++ b/chrome/test/base/ui_test_utils.h
@@ -361,37 +361,6 @@ void HideNativeWindow(gfx::NativeWindow window);
// Show and focus a native window. Returns true on success.
bool ShowAndFocusNativeWindow(gfx::NativeWindow window) WARN_UNUSED_RESULT;
-// Watches for responses from the DOMAutomationController and keeps them in a
-// queue. Useful for waiting for a message to be received.
-class DOMMessageQueue : public content::NotificationObserver {
- public:
- // Constructs a DOMMessageQueue and begins listening for messages from the
- // DOMAutomationController. Do not construct this until the browser has
- // started.
- DOMMessageQueue();
- virtual ~DOMMessageQueue();
-
- // Removes all messages in the message queue.
- void ClearQueue();
-
- // Wait for the next message to arrive. |message| will be set to the next
- // message, if not null. Returns true on success.
- bool WaitForMessage(std::string* message) WARN_UNUSED_RESULT;
-
- // Overridden content::NotificationObserver methods.
- virtual void Observe(int type,
- const content::NotificationSource& source,
- const content::NotificationDetails& details) OVERRIDE;
-
- private:
- content::NotificationRegistrar registrar_;
- std::queue<std::string> message_queue_;
- bool waiting_for_message_;
- scoped_refptr<content::MessageLoopRunner> message_loop_runner_;
-
- DISALLOW_COPY_AND_ASSIGN(DOMMessageQueue);
-};
-
// Takes a snapshot of the given render widget, rendered at |page_size|. The
// snapshot is set to |bitmap|. Returns true on success.
bool TakeRenderWidgetSnapshot(content::RenderWidgetHost* rwh,
« no previous file with comments | « build/android/pylib/single_test_runner.py ('k') | chrome/test/base/ui_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698