OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "chrome/common/component_flash_hint_file_linux.h" | 5 #include "chrome/common/component_flash_hint_file_linux.h" |
6 | 6 |
7 #include <errno.h> | 7 #include <errno.h> |
| 8 #include <stdint.h> |
8 #include <stdlib.h> | 9 #include <stdlib.h> |
9 #include <sys/mount.h> | 10 #include <sys/mount.h> |
10 | 11 |
11 #include "base/files/file_util.h" | 12 #include "base/files/file_util.h" |
12 #include "base/files/scoped_temp_dir.h" | 13 #include "base/files/scoped_temp_dir.h" |
13 #include "base/path_service.h" | 14 #include "base/path_service.h" |
14 #include "base/process/kill.h" | 15 #include "base/process/kill.h" |
15 #include "base/test/multiprocess_test.h" | 16 #include "base/test/multiprocess_test.h" |
16 #include "base/test/scoped_path_override.h" | 17 #include "base/test/scoped_path_override.h" |
17 #include "base/test/test_timeouts.h" | 18 #include "base/test/test_timeouts.h" |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 TEST_F(ComponentFlashHintFileTest, ExecTest2) { | 159 TEST_F(ComponentFlashHintFileTest, ExecTest2) { |
159 base::Process process = SpawnChild("NoExecMountTest"); | 160 base::Process process = SpawnChild("NoExecMountTest"); |
160 ASSERT_TRUE(process.IsValid()); | 161 ASSERT_TRUE(process.IsValid()); |
161 int exit_code = 42; | 162 int exit_code = 42; |
162 ASSERT_TRUE(process.WaitForExitWithTimeout(TestTimeouts::action_max_timeout(), | 163 ASSERT_TRUE(process.WaitForExitWithTimeout(TestTimeouts::action_max_timeout(), |
163 &exit_code)); | 164 &exit_code)); |
164 EXPECT_EQ(0, exit_code); | 165 EXPECT_EQ(0, exit_code); |
165 } | 166 } |
166 | 167 |
167 } // namespace chrome | 168 } // namespace chrome |
OLD | NEW |