| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |