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

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

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 | « chrome/test/base/ui_test_utils.h ('k') | chrome/test/gpu/gpu_crash_browsertest.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.cc
diff --git a/chrome/test/base/ui_test_utils.cc b/chrome/test/base/ui_test_utils.cc
index 21d54b1c7cac70eda4c570058c74f984d72fab3b..f2a08db2e10a739b84d8a3feb5ccf11bbb34a884 100644
--- a/chrome/test/base/ui_test_utils.cc
+++ b/chrome/test/base/ui_test_utils.cc
@@ -609,44 +609,6 @@ Browser* BrowserAddedObserver::WaitForSingleNewBrowser() {
return GetBrowserNotInSet(original_browsers_);
}
-DOMMessageQueue::DOMMessageQueue() : waiting_for_message_(false) {
- registrar_.Add(this, content::NOTIFICATION_DOM_OPERATION_RESPONSE,
- content::NotificationService::AllSources());
-}
-
-DOMMessageQueue::~DOMMessageQueue() {}
-
-void DOMMessageQueue::Observe(int type,
- const content::NotificationSource& source,
- const content::NotificationDetails& details) {
- content::Details<DomOperationNotificationDetails> dom_op_details(details);
- content::Source<RenderViewHost> sender(source);
- message_queue_.push(dom_op_details->json);
- if (waiting_for_message_) {
- waiting_for_message_ = false;
- message_loop_runner_->Quit();
- }
-}
-
-void DOMMessageQueue::ClearQueue() {
- message_queue_ = std::queue<std::string>();
-}
-
-bool DOMMessageQueue::WaitForMessage(std::string* message) {
- if (message_queue_.empty()) {
- waiting_for_message_ = true;
- // This will be quit when a new message comes in.
- message_loop_runner_ = new content::MessageLoopRunner;
- message_loop_runner_->Run();
- }
- // The queue should not be empty, unless we were quit because of a timeout.
- if (message_queue_.empty())
- return false;
- if (message)
- *message = message_queue_.front();
- return true;
-}
-
// Coordinates taking snapshots of a |RenderWidget|.
class SnapshotTaker {
public:
« no previous file with comments | « chrome/test/base/ui_test_utils.h ('k') | chrome/test/gpu/gpu_crash_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698