| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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/config_file_watcher.h" | 5 #include "remoting/host/config_file_watcher.h" |
| 6 | 6 |
| 7 #include "base/files/file_path.h" | 7 #include "base/files/file_path.h" |
| 8 #include "base/files/file_util.h" | 8 #include "base/files/file_util.h" |
| 9 #include "base/macros.h" |
| 9 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
| 10 #include "base/run_loop.h" | 11 #include "base/run_loop.h" |
| 11 #include "remoting/base/auto_thread.h" | 12 #include "remoting/base/auto_thread.h" |
| 12 #include "remoting/base/auto_thread_task_runner.h" | 13 #include "remoting/base/auto_thread_task_runner.h" |
| 13 #include "testing/gmock/include/gmock/gmock.h" | 14 #include "testing/gmock/include/gmock/gmock.h" |
| 14 #include "testing/gmock_mutant.h" | 15 #include "testing/gmock_mutant.h" |
| 15 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
| 16 | 17 |
| 17 using testing::_; | 18 using testing::_; |
| 18 using testing::AnyNumber; | 19 using testing::AnyNumber; |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 | 126 |
| 126 // Modify the watched file. | 127 // Modify the watched file. |
| 127 std::string data("test"); | 128 std::string data("test"); |
| 128 EXPECT_NE(base::WriteFile(config_file_, data.c_str(), | 129 EXPECT_NE(base::WriteFile(config_file_, data.c_str(), |
| 129 static_cast<int>(data.size())), -1); | 130 static_cast<int>(data.size())), -1); |
| 130 | 131 |
| 131 run_loop_.Run(); | 132 run_loop_.Run(); |
| 132 } | 133 } |
| 133 | 134 |
| 134 } // namespace remoting | 135 } // namespace remoting |
| OLD | NEW |