OLD | NEW |
1 // Copyright 2015 The Crashpad Authors. All rights reserved. | 1 // Copyright 2015 The Crashpad Authors. All rights reserved. |
2 // | 2 // |
3 // Licensed under the Apache License, Version 2.0 (the "License"); | 3 // Licensed under the Apache License, Version 2.0 (the "License"); |
4 // you may not use this file except in compliance with the License. | 4 // you may not use this file except in compliance with the License. |
5 // You may obtain a copy of the License at | 5 // You may obtain a copy of the License at |
6 // | 6 // |
7 // http://www.apache.org/licenses/LICENSE-2.0 | 7 // http://www.apache.org/licenses/LICENSE-2.0 |
8 // | 8 // |
9 // Unless required by applicable law or agreed to in writing, software | 9 // Unless required by applicable law or agreed to in writing, software |
10 // distributed under the License is distributed on an "AS IS" BASIS, | 10 // distributed under the License is distributed on an "AS IS" BASIS, |
(...skipping 28 matching lines...) Expand all Loading... |
39 ASSERT_TRUE(done.is_valid()) << ErrorMessage("CreateEvent"); | 39 ASSERT_TRUE(done.is_valid()) << ErrorMessage("CreateEvent"); |
40 | 40 |
41 base::FilePath test_executable = TestPaths::Executable(); | 41 base::FilePath test_executable = TestPaths::Executable(); |
42 std::wstring child_test_executable = | 42 std::wstring child_test_executable = |
43 test_executable.DirName() | 43 test_executable.DirName() |
44 .Append(directory_modification) | 44 .Append(directory_modification) |
45 .Append(test_executable.BaseName().RemoveFinalExtension().value() + | 45 .Append(test_executable.BaseName().RemoveFinalExtension().value() + |
46 L"_image_reader.exe") | 46 L"_image_reader.exe") |
47 .value(); | 47 .value(); |
48 ChildLauncher child(child_test_executable, done_uuid.ToString16()); | 48 ChildLauncher child(child_test_executable, done_uuid.ToString16()); |
49 child.Start(); | 49 ASSERT_NO_FATAL_FAILURE(child.Start()); |
50 | 50 |
51 char c; | 51 char c; |
52 ASSERT_TRUE( | 52 ASSERT_TRUE( |
53 LoggingReadFileExactly(child.stdout_read_handle(), &c, sizeof(c))); | 53 LoggingReadFileExactly(child.stdout_read_handle(), &c, sizeof(c))); |
54 ASSERT_EQ(c, ' '); | 54 ASSERT_EQ(c, ' '); |
55 | 55 |
56 { | 56 { |
57 ScopedProcessSuspend suspend(child.process_handle()); | 57 ScopedProcessSuspend suspend(child.process_handle()); |
58 | 58 |
59 ProcessSnapshotWin process_snapshot; | 59 ProcessSnapshotWin process_snapshot; |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 TestImageReaderChild(FILE_PATH_LITERAL("..\\..\\out\\Debug")); | 122 TestImageReaderChild(FILE_PATH_LITERAL("..\\..\\out\\Debug")); |
123 #else | 123 #else |
124 TestImageReaderChild(FILE_PATH_LITERAL("..\\..\\out\\Release")); | 124 TestImageReaderChild(FILE_PATH_LITERAL("..\\..\\out\\Release")); |
125 #endif | 125 #endif |
126 } | 126 } |
127 #endif | 127 #endif |
128 | 128 |
129 } // namespace | 129 } // namespace |
130 } // namespace test | 130 } // namespace test |
131 } // namespace crashpad | 131 } // namespace crashpad |
OLD | NEW |