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

Side by Side Diff: remoting/client/chromoting_view_unittest.cc

Issue 3305001: Move decoder into separate thread, clean up API layering, and redo update protocl (Closed)
Patch Set: Fix compile error. Created 10 years, 2 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 unified diff | Download patch
« no previous file with comments | « remoting/client/chromoting_view.cc ('k') | remoting/client/frame_consumer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/scoped_ptr.h" 5 #include "base/scoped_ptr.h"
6 #include "remoting/base/decoder.h"
6 #include "remoting/base/protocol/chromotocol.pb.h" 7 #include "remoting/base/protocol/chromotocol.pb.h"
7 #include "remoting/client/chromoting_view.h" 8 #include "remoting/client/chromoting_view.h"
8 #include "testing/gmock/include/gmock/gmock.h" 9 #include "testing/gmock/include/gmock/gmock.h"
9 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
10 11
11 using ::testing::_; 12 using ::testing::_;
12 using ::testing::InSequence; 13 using ::testing::InSequence;
13 using ::testing::Return; 14 using ::testing::Return;
14 15
15 namespace remoting { 16 namespace remoting {
(...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after
549 EXPECT_FALSE(view->decode(NULL)); 550 EXPECT_FALSE(view->decode(NULL));
550 } 551 }
551 552
552 // Test requesting a decoder for an invalid encoding. 553 // Test requesting a decoder for an invalid encoding.
553 TEST(ChromotingViewTest, InvalidEncoding) { 554 TEST(ChromotingViewTest, InvalidEncoding) {
554 scoped_ptr<FakeView> view(new FakeView()); 555 scoped_ptr<FakeView> view(new FakeView());
555 EXPECT_FALSE(view->setup_decoder(EncodingInvalid)); 556 EXPECT_FALSE(view->setup_decoder(EncodingInvalid));
556 } 557 }
557 558
558 } // namespace remoting 559 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/client/chromoting_view.cc ('k') | remoting/client/frame_consumer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698