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

Side by Side Diff: remoting/host/native_messaging/native_messaging_reader_unittest.cc

Issue 307463004: Remove PlatformFile from remoting (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix compilation Created 6 years, 6 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 | Annotate | Revision Log
OLDNEW
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/native_messaging/native_messaging_reader.h" 5 #include "remoting/host/native_messaging/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/message_loop.h" 10 #include "base/message_loop/message_loop.h"
11 #include "base/platform_file.h"
12 #include "base/run_loop.h" 11 #include "base/run_loop.h"
13 #include "base/values.h" 12 #include "base/values.h"
14 #include "remoting/host/setup/test_util.h" 13 #include "remoting/host/setup/test_util.h"
15 #include "testing/gtest/include/gtest/gtest.h" 14 #include "testing/gtest/include/gtest/gtest.h"
16 15
17 namespace remoting { 16 namespace remoting {
18 17
19 class NativeMessagingReaderTest : public testing::Test { 18 class NativeMessagingReaderTest : public testing::Test {
20 public: 19 public:
21 NativeMessagingReaderTest(); 20 NativeMessagingReaderTest();
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 Run(); 145 Run();
147 EXPECT_TRUE(message_); 146 EXPECT_TRUE(message_);
148 base::DictionaryValue* message_dict; 147 base::DictionaryValue* message_dict;
149 EXPECT_TRUE(message_->GetAsDictionary(&message_dict)); 148 EXPECT_TRUE(message_->GetAsDictionary(&message_dict));
150 int result; 149 int result;
151 EXPECT_TRUE(message_dict->GetInteger("foo", &result)); 150 EXPECT_TRUE(message_dict->GetInteger("foo", &result));
152 EXPECT_EQ(42, result); 151 EXPECT_EQ(42, result);
153 } 152 }
154 153
155 } // namespace remoting 154 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/ipc_util_win.cc ('k') | remoting/host/native_messaging/native_messaging_writer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698