| OLD | NEW |
| 1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2014 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 "components/browser_watcher/watcher_client_win.h" | 5 #include "components/browser_watcher/watcher_client_win.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/base_switches.h" | 9 #include "base/base_switches.h" |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| 11 #include "base/command_line.h" | 11 #include "base/command_line.h" |
| 12 #include "base/logging.h" | 12 #include "base/logging.h" |
| 13 #include "base/process/process_handle.h" | |
| 14 #include "base/process/kill.h" | 13 #include "base/process/kill.h" |
| 14 #include "base/process/process.h" |
| 15 #include "base/strings/string_number_conversions.h" | 15 #include "base/strings/string_number_conversions.h" |
| 16 #include "base/strings/stringprintf.h" | 16 #include "base/strings/stringprintf.h" |
| 17 #include "base/test/multiprocess_test.h" | 17 #include "base/test/multiprocess_test.h" |
| 18 #include "base/test/test_reg_util_win.h" | 18 #include "base/test/test_reg_util_win.h" |
| 19 #include "base/win/scoped_handle.h" | 19 #include "base/win/scoped_handle.h" |
| 20 #include "base/win/windows_version.h" | 20 #include "base/win/windows_version.h" |
| 21 #include "components/browser_watcher/exit_code_watcher_win.h" | 21 #include "components/browser_watcher/exit_code_watcher_win.h" |
| 22 #include "testing/gtest/include/gtest/gtest.h" | 22 #include "testing/gtest/include/gtest/gtest.h" |
| 23 #include "testing/multiprocess_func_list.h" | 23 #include "testing/multiprocess_func_list.h" |
| 24 | 24 |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 WatcherClient client(GetBaseCommandLineGenerator(LEAK_HANDLE)); | 191 WatcherClient client(GetBaseCommandLineGenerator(LEAK_HANDLE)); |
| 192 ASSERT_TRUE(client.use_legacy_launch()); | 192 ASSERT_TRUE(client.use_legacy_launch()); |
| 193 | 193 |
| 194 client.LaunchWatcher(); | 194 client.LaunchWatcher(); |
| 195 | 195 |
| 196 ASSERT_NO_FATAL_FAILURE( | 196 ASSERT_NO_FATAL_FAILURE( |
| 197 AssertSuccessfulExitCode(client.process().Duplicate())); | 197 AssertSuccessfulExitCode(client.process().Duplicate())); |
| 198 } | 198 } |
| 199 | 199 |
| 200 } // namespace browser_watcher | 200 } // namespace browser_watcher |
| OLD | NEW |