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

Side by Side Diff: snapshot/system_snapshot_mac_test.cc

Issue 654933002: Use exactly one of final, override, and virtual (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: git grep -E '^ {3,}.*override[ Created 6 years, 2 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/system_snapshot_mac.h ('k') | snapshot/thread_snapshot_mac.h » ('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 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
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
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
OLDNEW
« no previous file with comments | « snapshot/system_snapshot_mac.h ('k') | snapshot/thread_snapshot_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698