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 23 matching lines...) Expand all Loading... |
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 Loading... |
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 |
OLD | NEW |