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

Unified Diff: remoting/host/capturer_mac_unittest.cc

Issue 10082032: Awake Mac host display when remote session starts. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix unittest. Created 8 years, 8 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 | « remoting/host/capturer_mac.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/capturer_mac_unittest.cc
diff --git a/remoting/host/capturer_mac_unittest.cc b/remoting/host/capturer_mac_unittest.cc
index e6224bad805f2090f7c0d22583910ce0278f9dc8..e28d85d989702924a230e1f8ee9a78278d81f76a 100644
--- a/remoting/host/capturer_mac_unittest.cc
+++ b/remoting/host/capturer_mac_unittest.cc
@@ -11,6 +11,7 @@
#include "base/bind.h"
#include "base/callback.h"
#include "base/memory/scoped_ptr.h"
+#include "base/message_loop.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace remoting {
@@ -28,6 +29,7 @@ class CapturerMacTest : public testing::Test {
scoped_ptr<Capturer> capturer_;
SkRegion region_;
+ MessageLoop message_loop_;
};
// CapturerCallback1 verifies that the whole screen is initially dirty.
@@ -97,6 +99,7 @@ TEST_F(CapturerMacTest, Capture) {
capturer_->InvalidateRegion(region_);
capturer_->CaptureInvalidRegion(base::Bind(
&CapturerCallback2::CaptureDoneCallback, base::Unretained(&callback2)));
+ message_loop_.RunAllPending();
}
} // namespace remoting
« no previous file with comments | « remoting/host/capturer_mac.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698