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

Unified Diff: remoting/host/capturer_mac_unittest.cc

Issue 8493020: Move code in src/remoting to the new callbacks. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: - Created 9 years, 1 month 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') | remoting/host/capturer_win.cc » ('j') | 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 80deedbcf716f05b0a2635c352231991b4834977..e6224bad805f2090f7c0d22583910ce0278f9dc8 100644
--- a/remoting/host/capturer_mac_unittest.cc
+++ b/remoting/host/capturer_mac_unittest.cc
@@ -8,6 +8,7 @@
#include <ostream>
+#include "base/bind.h"
#include "base/callback.h"
#include "base/memory/scoped_ptr.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -88,14 +89,14 @@ TEST_F(CapturerMacTest, Capture) {
SCOPED_TRACE("");
// Check that we get an initial full-screen updated.
CapturerCallback1 callback1;
- capturer_->CaptureInvalidRegion(
- NewCallback(&callback1, &CapturerCallback1::CaptureDoneCallback));
+ capturer_->CaptureInvalidRegion(base::Bind(
+ &CapturerCallback1::CaptureDoneCallback, base::Unretained(&callback1)));
// Check that subsequent dirty rects are propagated correctly.
AddDirtyRect();
CapturerCallback2 callback2(region_);
capturer_->InvalidateRegion(region_);
- capturer_->CaptureInvalidRegion(
- NewCallback(&callback2, &CapturerCallback2::CaptureDoneCallback));
+ capturer_->CaptureInvalidRegion(base::Bind(
+ &CapturerCallback2::CaptureDoneCallback, base::Unretained(&callback2)));
}
} // namespace remoting
« no previous file with comments | « remoting/host/capturer_mac.cc ('k') | remoting/host/capturer_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698