| 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
|
|
|