OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "remoting/host/setup/native_messaging_reader.h" | 5 #include "remoting/host/setup/native_messaging_reader.h" |
6 | 6 |
7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
8 #include "base/bind.h" | 8 #include "base/bind.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
11 #include "base/platform_file.h" | 11 #include "base/platform_file.h" |
12 #include "base/run_loop.h" | 12 #include "base/run_loop.h" |
13 #include "base/values.h" | 13 #include "base/values.h" |
14 #include "remoting/host/setup/test_util.h" | 14 #include "remoting/host/setup/test_util.h" |
15 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
16 | 16 |
17 namespace remoting { | 17 namespace remoting { |
18 | 18 |
19 class NativeMessagingReaderTest : public testing::Test { | 19 class NativeMessagingReaderTest : public testing::Test { |
20 public: | 20 public: |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 Run(); | 154 Run(); |
155 EXPECT_TRUE(message_); | 155 EXPECT_TRUE(message_); |
156 base::DictionaryValue* message_dict; | 156 base::DictionaryValue* message_dict; |
157 EXPECT_TRUE(message_->GetAsDictionary(&message_dict)); | 157 EXPECT_TRUE(message_->GetAsDictionary(&message_dict)); |
158 int result; | 158 int result; |
159 EXPECT_TRUE(message_dict->GetInteger("foo", &result)); | 159 EXPECT_TRUE(message_dict->GetInteger("foo", &result)); |
160 EXPECT_EQ(42, result); | 160 EXPECT_EQ(42, result); |
161 } | 161 } |
162 | 162 |
163 } // namespace remoting | 163 } // namespace remoting |
OLD | NEW |