Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(112)

Side by Side Diff: third_party/crashpad/crashpad/snapshot/win/process_snapshot_win_test.cc

Issue 2773813002: Update Crashpad to 8e37886d418dd042c3c7bfadac99214739ee4d98 (Closed)
Patch Set: Update Crashpad to 8e37886d418dd042c3c7bfadac99214739ee4d98 Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « third_party/crashpad/crashpad/snapshot/win/process_snapshot_win.cc ('k') | third_party/crashpad/crashpad/test/gmock_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698