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 30 matching lines...) Expand all Loading... |
41 std::wstring child_test_executable = | 41 std::wstring child_test_executable = |
42 test_executable.DirName() | 42 test_executable.DirName() |
43 .Append(directory_modification) | 43 .Append(directory_modification) |
44 .Append(test_executable.BaseName().RemoveFinalExtension().value() + | 44 .Append(test_executable.BaseName().RemoveFinalExtension().value() + |
45 L"_image_reader.exe") | 45 L"_image_reader.exe") |
46 .value(); | 46 .value(); |
47 ChildLauncher child(child_test_executable, done_uuid.ToString16()); | 47 ChildLauncher child(child_test_executable, done_uuid.ToString16()); |
48 child.Start(); | 48 child.Start(); |
49 | 49 |
50 char c; | 50 char c; |
51 ASSERT_TRUE(LoggingReadFile(child.stdout_read_handle(), &c, sizeof(c))); | 51 ASSERT_TRUE( |
| 52 LoggingReadFileExactly(child.stdout_read_handle(), &c, sizeof(c))); |
52 ASSERT_EQ(' ', c); | 53 ASSERT_EQ(' ', c); |
53 | 54 |
54 ScopedProcessSuspend suspend(child.process_handle()); | 55 ScopedProcessSuspend suspend(child.process_handle()); |
55 | 56 |
56 ProcessSnapshotWin process_snapshot; | 57 ProcessSnapshotWin process_snapshot; |
57 ASSERT_TRUE(process_snapshot.Initialize( | 58 ASSERT_TRUE(process_snapshot.Initialize( |
58 child.process_handle(), ProcessSuspensionState::kSuspended, 0, 0)); | 59 child.process_handle(), ProcessSuspensionState::kSuspended, 0, 0)); |
59 | 60 |
60 ASSERT_GE(process_snapshot.Modules().size(), 2u); | 61 ASSERT_GE(process_snapshot.Modules().size(), 2u); |
61 | 62 |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 TestImageReaderChild(FILE_PATH_LITERAL("..\\..\\out\\Debug")); | 117 TestImageReaderChild(FILE_PATH_LITERAL("..\\..\\out\\Debug")); |
117 #else | 118 #else |
118 TestImageReaderChild(FILE_PATH_LITERAL("..\\..\\out\\Release")); | 119 TestImageReaderChild(FILE_PATH_LITERAL("..\\..\\out\\Release")); |
119 #endif | 120 #endif |
120 } | 121 } |
121 #endif | 122 #endif |
122 | 123 |
123 } // namespace | 124 } // namespace |
124 } // namespace test | 125 } // namespace test |
125 } // namespace crashpad | 126 } // namespace crashpad |
OLD | NEW |