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

Unified Diff: remoting/host/capturer_mac_unittest.cc

Issue 3013015: Initial pass at integrating Differ into the chromoting host code.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 4 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/chromoting_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/capturer_mac_unittest.cc
===================================================================
--- remoting/host/capturer_mac_unittest.cc (revision 55264)
+++ remoting/host/capturer_mac_unittest.cc (working copy)
@@ -8,6 +8,7 @@
#include "base/callback.h"
#include "base/scoped_ptr.h"
+#include "remoting/base/types.h"
#include "remoting/host/capturer_mac.h"
#include "testing/gmock/include/gmock/gmock.h"
@@ -18,20 +19,20 @@
virtual void SetUp() {
capturer_.reset(new CapturerMac());
capturer_->ScreenConfigurationChanged();
- rects_.push_back(gfx::Rect(0, 0, 10, 10));
+ rects_.insert(gfx::Rect(0, 0, 10, 10));
}
scoped_ptr<CapturerMac> capturer_;
- RectVector rects_;
+ InvalidRects rects_;
};
class CapturerCallback {
public:
- explicit CapturerCallback(const RectVector& rects) : rects_(rects) { }
+ explicit CapturerCallback(const InvalidRects& rects) : rects_(rects) { }
void CaptureDoneCallback(scoped_refptr<CaptureData> capture_data);
protected:
- RectVector rects_;
+ InvalidRects rects_;
private:
DISALLOW_COPY_AND_ASSIGN(CapturerCallback);
@@ -66,9 +67,10 @@
} // namespace remoting
-std::ostream& operator<<(std::ostream& out, const remoting::RectVector& rects) {
- for (remoting::RectVector::const_iterator i = rects.begin();
- i < rects.end();
+std::ostream& operator<<(std::ostream& out,
+ const remoting::InvalidRects& rects) {
+ for (remoting::InvalidRects::const_iterator i = rects.begin();
+ i != rects.end();
++i) {
out << *i << std::endl;
}
« no previous file with comments | « remoting/host/capturer_mac.cc ('k') | remoting/host/chromoting_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698