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

Side by Side Diff: snapshot/system_snapshot_mac_test.cc

Issue 656703002: Convert NULL to nullptr (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: Fix 80-column violations 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.cc ('k') | snapshot/thread_snapshot_mac.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 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 virtual 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_, nullptr))
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_;
62 62
63 DISALLOW_COPY_AND_ASSIGN(SystemSnapshotMacTest); 63 DISALLOW_COPY_AND_ASSIGN(SystemSnapshotMacTest);
(...skipping 103 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.cc ('k') | snapshot/thread_snapshot_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698