OLD | NEW |
1 // Copyright 2014 The Crashpad Authors. All rights reserved. | 1 // Copyright 2014 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 process_reader_(), | 41 process_reader_(), |
42 snapshot_time_(), | 42 snapshot_time_(), |
43 system_snapshot_() { | 43 system_snapshot_() { |
44 } | 44 } |
45 | 45 |
46 const internal::SystemSnapshotMac& system_snapshot() const { | 46 const internal::SystemSnapshotMac& system_snapshot() const { |
47 return system_snapshot_; | 47 return system_snapshot_; |
48 } | 48 } |
49 | 49 |
50 // testing::Test: | 50 // testing::Test: |
51 virtual void SetUp() override { | 51 void SetUp() override { |
52 ASSERT_TRUE(process_reader_.Initialize(mach_task_self())); | 52 ASSERT_TRUE(process_reader_.Initialize(mach_task_self())); |
53 ASSERT_EQ(0, gettimeofday(&snapshot_time_, NULL)) | 53 ASSERT_EQ(0, gettimeofday(&snapshot_time_, NULL)) |
54 << ErrnoMessage("gettimeofday"); | 54 << ErrnoMessage("gettimeofday"); |
55 system_snapshot_.Initialize(&process_reader_, &snapshot_time_); | 55 system_snapshot_.Initialize(&process_reader_, &snapshot_time_); |
56 } | 56 } |
57 | 57 |
58 private: | 58 private: |
59 ProcessReader process_reader_; | 59 ProcessReader process_reader_; |
60 timeval snapshot_time_; | 60 timeval snapshot_time_; |
61 internal::SystemSnapshotMac system_snapshot_; | 61 internal::SystemSnapshotMac system_snapshot_; |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 FAIL() << "dst_delta_seconds " << dst_delta_seconds; | 167 FAIL() << "dst_delta_seconds " << dst_delta_seconds; |
168 } | 168 } |
169 | 169 |
170 EXPECT_NE(standard_name, daylight_name); | 170 EXPECT_NE(standard_name, daylight_name); |
171 } | 171 } |
172 } | 172 } |
173 | 173 |
174 } // namespace | 174 } // namespace |
175 } // namespace test | 175 } // namespace test |
176 } // namespace crashpad | 176 } // namespace crashpad |
OLD | NEW |