summaryrefslogtreecommitdiffstats
path: root/remoting/host/capturer_mac_unittest.cc
diff options
context:
space:
mode:
authorgarykac@google.com <garykac@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-06 22:50:00 +0000
committergarykac@google.com <garykac@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-06 22:50:00 +0000
commit88552a9c89b99b93211ac5e679a0c13420e294db (patch)
treebe326ad62f7c9c9b3dfdea155a306005af00356a /remoting/host/capturer_mac_unittest.cc
parentce3b22e8da4fa9ca838423bacd54e45c3030d518 (diff)
downloadchromium_src-88552a9c89b99b93211ac5e679a0c13420e294db.zip
chromium_src-88552a9c89b99b93211ac5e679a0c13420e294db.tar.gz
chromium_src-88552a9c89b99b93211ac5e679a0c13420e294db.tar.bz2
Initial pass at integrating Differ into the chromoting host code.
BUG=none TEST=run Win host; x11 client Review URL: http://codereview.chromium.org/3013015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55297 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/host/capturer_mac_unittest.cc')
-rw-r--r--remoting/host/capturer_mac_unittest.cc16
1 files changed, 9 insertions, 7 deletions
diff --git a/remoting/host/capturer_mac_unittest.cc b/remoting/host/capturer_mac_unittest.cc
index a172b15..937d2bd 100644
--- a/remoting/host/capturer_mac_unittest.cc
+++ b/remoting/host/capturer_mac_unittest.cc
@@ -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 @@ class CapturerMacTest : public testing::Test {
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 @@ TEST_F(CapturerMacTest, Capture) {
} // 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;
}