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

Side by Side Diff: remoting/host/native_messaging/native_messaging_writer_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_writer.h" 5 #include "remoting/host/native_messaging/native_messaging_writer.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/json/json_reader.h" 8 #include "base/json/json_reader.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/platform_file.h"
11 #include "base/stl_util.h" 10 #include "base/stl_util.h"
12 #include "base/values.h" 11 #include "base/values.h"
13 #include "remoting/host/setup/test_util.h" 12 #include "remoting/host/setup/test_util.h"
14 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
15 14
16 namespace remoting { 15 namespace remoting {
17 16
18 class NativeMessagingWriterTest : public testing::Test { 17 class NativeMessagingWriterTest : public testing::Test {
19 public: 18 public:
20 NativeMessagingWriterTest(); 19 NativeMessagingWriterTest();
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 88
90 TEST_F(NativeMessagingWriterTest, FailedWrite) { 89 TEST_F(NativeMessagingWriterTest, FailedWrite) {
91 // Close the read end so that writing fails immediately. 90 // Close the read end so that writing fails immediately.
92 read_file_.Close(); 91 read_file_.Close();
93 92
94 base::DictionaryValue message; 93 base::DictionaryValue message;
95 EXPECT_FALSE(writer_->WriteMessage(message)); 94 EXPECT_FALSE(writer_->WriteMessage(message));
96 } 95 }
97 96
98 } // namespace remoting 97 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/native_messaging/native_messaging_reader_unittest.cc ('k') | remoting/host/win/unprivileged_process_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698