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

Unified Diff: aura/window_unittest.cc

Issue 7770002: gfx::Compositor: SchedulePaint. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 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 | « aura/desktop.cc ('k') | ui/gfx/compositor/compositor.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: aura/window_unittest.cc
diff --git a/aura/window_unittest.cc b/aura/window_unittest.cc
index 3035ee4fe511d97456aaeb4af9a2c42039a06430..2aba4c55626c5d959192ce2ab0e5365db38e5f74 100644
--- a/aura/window_unittest.cc
+++ b/aura/window_unittest.cc
@@ -58,7 +58,7 @@ class TestWindowDelegate : public WindowDelegate {
class WindowTest : public testing::Test {
public:
- WindowTest() {
+ WindowTest() : main_message_loop(MessageLoop::TYPE_UI) {
aura::Desktop::GetInstance()->Show();
aura::Desktop::GetInstance()->SetSize(gfx::Size(500, 500));
}
@@ -93,11 +93,13 @@ class WindowTest : public testing::Test {
}
void RunPendingMessages() {
- MessageLoop main_message_loop(MessageLoop::TYPE_UI);
+ MessageLoop message_loop(MessageLoop::TYPE_UI);
MessageLoopForUI::current()->Run(NULL);
}
private:
+ MessageLoop main_message_loop;
+
DISALLOW_COPY_AND_ASSIGN(WindowTest);
};
« no previous file with comments | « aura/desktop.cc ('k') | ui/gfx/compositor/compositor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698