OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <gtest/gtest.h> | 5 #include <gtest/gtest.h> |
6 #include <stddef.h> | 6 #include <stddef.h> |
7 | 7 |
8 #include <queue> | 8 #include <queue> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/bind.h" | 12 #include "base/bind.h" |
13 #include "base/callback.h" | 13 #include "base/callback.h" |
14 #include "base/files/file_util.h" | 14 #include "base/files/file_util.h" |
15 #include "base/location.h" | 15 #include "base/location.h" |
| 16 #include "base/memory/scoped_ptr.h" |
16 #include "base/posix/eintr_wrapper.h" | 17 #include "base/posix/eintr_wrapper.h" |
17 #include "base/run_loop.h" | 18 #include "base/run_loop.h" |
18 #include "base/single_thread_task_runner.h" | 19 #include "base/single_thread_task_runner.h" |
19 #include "base/strings/string_util.h" | 20 #include "base/strings/string_util.h" |
20 #include "base/threading/thread.h" | 21 #include "base/threading/thread.h" |
21 #include "chromeos/process_proxy/process_output_watcher.h" | 22 #include "chromeos/process_proxy/process_output_watcher.h" |
22 | 23 |
23 namespace chromeos { | 24 namespace chromeos { |
24 | 25 |
25 namespace { | 26 namespace { |
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
318 // This will send '\0' to output watcher. | 319 // This will send '\0' to output watcher. |
319 test_cases.push_back(TestCase("", true)); | 320 test_cases.push_back(TestCase("", true)); |
320 // Let's verify that next input also gets detected (i.e. output watcher does | 321 // Let's verify that next input also gets detected (i.e. output watcher does |
321 // not exit after seeing '\0' from previous test case). | 322 // not exit after seeing '\0' from previous test case). |
322 test_cases.push_back(TestCase("a", true)); | 323 test_cases.push_back(TestCase("a", true)); |
323 | 324 |
324 RunTest(test_cases); | 325 RunTest(test_cases); |
325 } | 326 } |
326 | 327 |
327 } // namespace chromeos | 328 } // namespace chromeos |
OLD | NEW |