| 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_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" | 10 #include "base/platform_file.h" |
| 11 #include "base/stl_util.h" | 11 #include "base/stl_util.h" |
| 12 #include "base/values.h" | 12 #include "base/values.h" |
| 13 #include "remoting/host/setup/test_util.h" | 13 #include "remoting/host/setup/test_util.h" |
| 14 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
| 15 | 15 |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 TEST_F(NativeMessagingWriterTest, FailedWrite) { | 106 TEST_F(NativeMessagingWriterTest, FailedWrite) { |
| 107 // Close the read end so that writing fails immediately. | 107 // Close the read end so that writing fails immediately. |
| 108 base::ClosePlatformFile(read_handle_); | 108 base::ClosePlatformFile(read_handle_); |
| 109 read_handle_open_ = false; | 109 read_handle_open_ = false; |
| 110 | 110 |
| 111 base::DictionaryValue message; | 111 base::DictionaryValue message; |
| 112 EXPECT_FALSE(writer_->WriteMessage(message)); | 112 EXPECT_FALSE(writer_->WriteMessage(message)); |
| 113 } | 113 } |
| 114 | 114 |
| 115 } // namespace remoting | 115 } // namespace remoting |
| OLD | NEW |