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-06-09 21:56:39 +0000
committerhclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-09 21:56:39 +0000
commitef0a59a6fd722a0910196c951dc676c19127a28b (patch)
tree9d90ab9227e4222fa312dadae114c8d2247028bf /remoting/host/session_manager_unittest.cc
parente9fdd159ffd94e3e097bd6905d84e6b564b04c2c (diff)
downloadchromium_src-ef0a59a6fd722a0910196c951dc676c19127a28b.zip
chromium_src-ef0a59a6fd722a0910196c951dc676c19127a28b.tar.gz
chromium_src-ef0a59a6fd722a0910196c951dc676c19127a28b.tar.bz2
Implement a chromoting client using X11
Using XRender to render the chromoting client. This patch has done several things: 1. Rename chromotocol_pb to remoting 2. Defined ChromotingView as the display area of the remote view 3. Implemented X11Client as the client that uses X11 for display 4. Implemented X11View that uses XRender for drawing 5. Fixed several problems in host capturer and encoder Review URL: http://codereview.chromium.org/2745006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49329 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/host/session_manager_unittest.cc')
-rw-r--r--remoting/host/session_manager_unittest.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/remoting/host/session_manager_unittest.cc b/remoting/host/session_manager_unittest.cc
index 9f4cdea..008d063 100644
--- a/remoting/host/session_manager_unittest.cc
+++ b/remoting/host/session_manager_unittest.cc
@@ -28,8 +28,8 @@ static uint8* kData[3] = {
reinterpret_cast<uint8*>(0x02),
reinterpret_cast<uint8*>(0x03),
};
-static const chromotocol_pb::PixelFormat kFormat =
- chromotocol_pb::PixelFormatRgb32;
+static const PixelFormat kFormat =
+ PixelFormatRgb32;
class SessionManagerTest : public testing::Test {
public:
@@ -106,7 +106,7 @@ TEST_F(SessionManagerTest, OneRecordCycle) {
.WillOnce(Return(kFormat));
// Expect the encoder be called.
- chromotocol_pb::UpdateStreamPacketHeader header;
+ UpdateStreamPacketHeader header;
scoped_refptr<media::DataBuffer> buffer = new media::DataBuffer(0);
EXPECT_CALL(*encoder_, SetSize(kWidth, kHeight));
EXPECT_CALL(*encoder_, SetPixelFormat(kFormat));