summaryrefslogtreecommitdiffstats
path: root/remoting/host/session_manager_unittest.cc
diff options
context:
space:
mode:
authorhclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-23 00:54:47 +0000
committerhclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-23 00:54:47 +0000
commitbe2da4de5227f4f1cbb8455a58045c5e51076474 (patch)
treed69b7cb3b045d01adb953b007086fbe9c864af40 /remoting/host/session_manager_unittest.cc
parent452390cc7dc08a33a2c9b5729372b830f6966095 (diff)
downloadchromium_src-be2da4de5227f4f1cbb8455a58045c5e51076474.zip
chromium_src-be2da4de5227f4f1cbb8455a58045c5e51076474.tar.gz
chromium_src-be2da4de5227f4f1cbb8455a58045c5e51076474.tar.bz2
Moving Encoder and Decoder to remoting/base
Putting Encder and Decoder together so we can have test that tests both of them. TEST=remoting_unittests Review URL: http://codereview.chromium.org/2840036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53427 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/host/session_manager_unittest.cc')
-rw-r--r--remoting/host/session_manager_unittest.cc11
1 files changed, 5 insertions, 6 deletions
diff --git a/remoting/host/session_manager_unittest.cc b/remoting/host/session_manager_unittest.cc
index e6d8114..239eb97 100644
--- a/remoting/host/session_manager_unittest.cc
+++ b/remoting/host/session_manager_unittest.cc
@@ -4,6 +4,7 @@
#include "base/message_loop.h"
#include "base/task.h"
+#include "remoting/base/mock_objects.h"
#include "remoting/host/mock_objects.h"
#include "remoting/host/session_manager.h"
#include "testing/gmock/include/gmock/gmock.h"
@@ -80,15 +81,13 @@ TEST_F(SessionManagerTest, OneRecordCycle) {
RectVector update_rects;
update_rects.push_back(gfx::Rect(0, 0, 10, 10));
- Capturer::DataPlanes planes;
- for (int i = 0; i < Capturer::DataPlanes::kPlaneCount; ++i) {
+ DataPlanes planes;
+ for (int i = 0; i < DataPlanes::kPlaneCount; ++i) {
planes.data[i] = reinterpret_cast<uint8*>(i);
planes.strides[i] = kWidth * 4;
}
- scoped_refptr<Capturer::CaptureData> data(new Capturer::CaptureData(planes,
- kWidth,
- kHeight,
- kFormat));
+ scoped_refptr<CaptureData> data(new CaptureData(planes, kWidth,
+ kHeight, kFormat));
// Set the recording rate to very low to avoid capture twice.
record_->SetMaxRate(0.01);