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

Side by Side Diff: snapshot/win/system_snapshot_win_test.cc

Issue 1326443007: win: Fix incorrect thread suspend count due to ScopedProcessSuspend (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: assert some threads captured Created 5 years, 3 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
« no previous file with comments | « snapshot/win/process_snapshot_win.cc ('k') | tools/generate_dump.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 23 matching lines...) Expand all
34 process_reader_(), 34 process_reader_(),
35 system_snapshot_() { 35 system_snapshot_() {
36 } 36 }
37 37
38 const internal::SystemSnapshotWin& system_snapshot() const { 38 const internal::SystemSnapshotWin& system_snapshot() const {
39 return system_snapshot_; 39 return system_snapshot_;
40 } 40 }
41 41
42 // testing::Test: 42 // testing::Test:
43 void SetUp() override { 43 void SetUp() override {
44 ASSERT_TRUE(process_reader_.Initialize(GetCurrentProcess())); 44 ASSERT_TRUE(process_reader_.Initialize(GetCurrentProcess(),
45 ProcessSuspensionState::kRunning));
45 system_snapshot_.Initialize(&process_reader_); 46 system_snapshot_.Initialize(&process_reader_);
46 } 47 }
47 48
48 private: 49 private:
49 ProcessReaderWin process_reader_; 50 ProcessReaderWin process_reader_;
50 internal::SystemSnapshotWin system_snapshot_; 51 internal::SystemSnapshotWin system_snapshot_;
51 52
52 DISALLOW_COPY_AND_ASSIGN(SystemSnapshotWinTest); 53 DISALLOW_COPY_AND_ASSIGN(SystemSnapshotWinTest);
53 }; 54 };
54 55
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 FAIL() << "dst_delta_seconds " << dst_delta_seconds; 148 FAIL() << "dst_delta_seconds " << dst_delta_seconds;
148 } 149 }
149 150
150 EXPECT_NE(standard_name, daylight_name); 151 EXPECT_NE(standard_name, daylight_name);
151 } 152 }
152 } 153 }
153 154
154 } // namespace 155 } // namespace
155 } // namespace test 156 } // namespace test
156 } // namespace crashpad 157 } // namespace crashpad
OLDNEW
« no previous file with comments | « snapshot/win/process_snapshot_win.cc ('k') | tools/generate_dump.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698