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

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

Issue 2555353002: Update Crashpad to 32981a3ee9d7c2769fb27afa038fe2e194cfa329 (Closed)
Patch Set: fix readme Created 4 years 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 13 matching lines...) Expand all
24 #include "test/win/child_launcher.h" 24 #include "test/win/child_launcher.h"
25 #include "util/file/file_io.h" 25 #include "util/file/file_io.h"
26 #include "util/win/scoped_handle.h" 26 #include "util/win/scoped_handle.h"
27 #include "util/win/scoped_process_suspend.h" 27 #include "util/win/scoped_process_suspend.h"
28 28
29 namespace crashpad { 29 namespace crashpad {
30 namespace test { 30 namespace test {
31 namespace { 31 namespace {
32 32
33 void TestImageReaderChild(const base::string16& directory_modification) { 33 void TestImageReaderChild(const base::string16& directory_modification) {
34 UUID done_uuid(UUID::InitializeWithNewTag{}); 34 UUID done_uuid;
35 done_uuid.InitializeWithNew();
35 ScopedKernelHANDLE done( 36 ScopedKernelHANDLE done(
36 CreateEvent(nullptr, true, false, done_uuid.ToString16().c_str())); 37 CreateEvent(nullptr, true, false, done_uuid.ToString16().c_str()));
37 ASSERT_TRUE(done.get()); 38 ASSERT_TRUE(done.get());
38 39
39 base::FilePath test_executable = Paths::Executable(); 40 base::FilePath test_executable = Paths::Executable();
40 std::wstring child_test_executable = 41 std::wstring child_test_executable =
41 test_executable.DirName() 42 test_executable.DirName()
42 .Append(directory_modification) 43 .Append(directory_modification)
43 .Append(test_executable.BaseName().RemoveFinalExtension().value() + 44 .Append(test_executable.BaseName().RemoveFinalExtension().value() +
44 L"_image_reader.exe") 45 L"_image_reader.exe")
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 TestImageReaderChild(FILE_PATH_LITERAL("..\\..\\out\\Debug")); 116 TestImageReaderChild(FILE_PATH_LITERAL("..\\..\\out\\Debug"));
116 #else 117 #else
117 TestImageReaderChild(FILE_PATH_LITERAL("..\\..\\out\\Release")); 118 TestImageReaderChild(FILE_PATH_LITERAL("..\\..\\out\\Release"));
118 #endif 119 #endif
119 } 120 }
120 #endif 121 #endif
121 122
122 } // namespace 123 } // namespace
123 } // namespace test 124 } // namespace test
124 } // namespace crashpad 125 } // namespace crashpad
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698