OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/stability_debugging.h" | 5 #include "components/browser_watcher/stability_debugging.h" |
6 | 6 |
7 #include "base/files/file_enumerator.h" | 7 #include "base/files/file_enumerator.h" |
8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
9 #include "base/files/file_util.h" | 9 #include "base/files/file_util.h" |
10 #include "base/files/scoped_temp_dir.h" | 10 #include "base/files/scoped_temp_dir.h" |
11 #include "base/process/process.h" | 11 #include "base/process/process.h" |
12 #include "base/test/multiprocess_test.h" | 12 #include "base/test/multiprocess_test.h" |
| 13 #include "components/browser_watcher/stability_paths.h" |
13 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
14 #include "testing/multiprocess_func_list.h" | 15 #include "testing/multiprocess_func_list.h" |
15 | 16 |
16 namespace browser_watcher { | 17 namespace browser_watcher { |
17 | 18 |
18 class StabilityDebuggingWinMultiProcTest : public base::MultiProcessTest {}; | 19 class StabilityDebuggingWinMultiProcTest : public base::MultiProcessTest {}; |
19 | 20 |
20 MULTIPROCESS_TEST_MAIN(DummyProcess) { | 21 MULTIPROCESS_TEST_MAIN(DummyProcess) { |
21 return 0; | 22 return 0; |
22 } | 23 } |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 | 78 |
78 // Validate only the stability file matches. | 79 // Validate only the stability file matches. |
79 base::FileEnumerator enumerator(stability_dir, false /* recursive */, | 80 base::FileEnumerator enumerator(stability_dir, false /* recursive */, |
80 base::FileEnumerator::FILES, | 81 base::FileEnumerator::FILES, |
81 GetStabilityFilePattern()); | 82 GetStabilityFilePattern()); |
82 ASSERT_EQ(stability_file, enumerator.Next()); | 83 ASSERT_EQ(stability_file, enumerator.Next()); |
83 ASSERT_TRUE(enumerator.Next().empty()); | 84 ASSERT_TRUE(enumerator.Next().empty()); |
84 } | 85 } |
85 | 86 |
86 } // namespace browser_watcher | 87 } // namespace browser_watcher |
OLD | NEW |