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

Side by Side Diff: util/posix/process_info_test.cc

Issue 1344683002: Include implicit_cast.h at all users of it. (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: implicitcast2: . 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 | « util/posix/close_multiple.cc ('k') | util/posix/symbolic_constants_posix.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,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and 12 // See the License for the specific language governing permissions and
13 // limitations under the License. 13 // limitations under the License.
14 14
15 #include "util/posix/process_info.h" 15 #include "util/posix/process_info.h"
16 16
17 #include <time.h> 17 #include <time.h>
18 #include <unistd.h> 18 #include <unistd.h>
19 19
20 #include <set> 20 #include <set>
21 #include <string> 21 #include <string>
22 #include <vector> 22 #include <vector>
23 23
24 #include "base/basictypes.h" 24 #include "base/basictypes.h"
25 #include "build/build_config.h" 25 #include "build/build_config.h"
26 #include "gtest/gtest.h" 26 #include "gtest/gtest.h"
27 #include "test/errors.h" 27 #include "test/errors.h"
28 #include "util/misc/implicit_cast.h"
28 29
29 #if defined(OS_MACOSX) 30 #if defined(OS_MACOSX)
30 #include <crt_externs.h> 31 #include <crt_externs.h>
31 #endif 32 #endif
32 33
33 namespace crashpad { 34 namespace crashpad {
34 namespace test { 35 namespace test {
35 namespace { 36 namespace {
36 37
37 void TestSelfProcess(const ProcessInfo& process_info) { 38 void TestSelfProcess(const ProcessInfo& process_info) {
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 EXPECT_EQ(implicit_cast<uid_t>(0), process_info.SavedUserID()); 140 EXPECT_EQ(implicit_cast<uid_t>(0), process_info.SavedUserID());
140 EXPECT_EQ(implicit_cast<gid_t>(0), process_info.RealGroupID()); 141 EXPECT_EQ(implicit_cast<gid_t>(0), process_info.RealGroupID());
141 EXPECT_EQ(implicit_cast<gid_t>(0), process_info.EffectiveGroupID()); 142 EXPECT_EQ(implicit_cast<gid_t>(0), process_info.EffectiveGroupID());
142 EXPECT_EQ(implicit_cast<gid_t>(0), process_info.SavedGroupID()); 143 EXPECT_EQ(implicit_cast<gid_t>(0), process_info.SavedGroupID());
143 EXPECT_FALSE(process_info.AllGroups().empty()); 144 EXPECT_FALSE(process_info.AllGroups().empty());
144 } 145 }
145 146
146 } // namespace 147 } // namespace
147 } // namespace test 148 } // namespace test
148 } // namespace crashpad 149 } // namespace crashpad
OLDNEW
« no previous file with comments | « util/posix/close_multiple.cc ('k') | util/posix/symbolic_constants_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698