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

Unified Diff: remoting/host/capturer_mac_unittest.cc

Issue 10382184: [Chromoting] Initial plumbing for cursor shape. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove unused vars. Fix Mac Capturer Unittest. Created 8 years, 7 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') | 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 39cd99419ab2abe3f721d29ddc496c998e44aaf4..0fbdae04425144f6a740069fac3342a1bb652baf 100644
--- a/remoting/host/capturer_mac_unittest.cc
+++ b/remoting/host/capturer_mac_unittest.cc
@@ -11,6 +11,8 @@
#include "base/bind.h"
#include "base/callback.h"
#include "base/memory/scoped_ptr.h"
+#include "remoting/base/capture_data.h"
+#include "remoting/proto/control.pb.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace remoting {
@@ -85,9 +87,25 @@ void CapturerCallback2::CaptureDoneCallback(
EXPECT_EQ(0, planes.strides[2]);
}
+class CursorCallback {
+ public:
+ CursorCallback() { }
+ void CursorShapeChangedCallback(
+ scoped_ptr<protocol::CursorShapeInfo> cursor_data);
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(CursorCallback);
+};
+
+void CursorCallback::CursorShapeChangedCallback(
+ scoped_ptr<protocol::CursorShapeInfo> cursor_data) {
+}
+
TEST_F(CapturerMacTest, Capture) {
SCOPED_TRACE("");
- capturer_->Start();
+ CursorCallback cursor_callback;
+ capturer_->Start(base::Bind(&CursorCallback::CursorShapeChangedCallback,
+ base::Unretained(&cursor_callback)));
// Check that we get an initial full-screen updated.
CapturerCallback1 callback1;
capturer_->CaptureInvalidRegion(base::Bind(
« 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