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

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

Issue 1051533002: test: Move util/test to its own top-level directory, test (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: Rebase Created 5 years, 8 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
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 "util/test/errors.h" 27 #include "test/errors.h"
28 28
29 #if defined(OS_MACOSX) 29 #if defined(OS_MACOSX)
30 #include <crt_externs.h> 30 #include <crt_externs.h>
31 #endif 31 #endif
32 32
33 namespace crashpad { 33 namespace crashpad {
34 namespace test { 34 namespace test {
35 namespace { 35 namespace {
36 36
37 void TestSelfProcess(const ProcessInfo& process_info) { 37 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()); 139 EXPECT_EQ(implicit_cast<uid_t>(0), process_info.SavedUserID());
140 EXPECT_EQ(implicit_cast<gid_t>(0), process_info.RealGroupID()); 140 EXPECT_EQ(implicit_cast<gid_t>(0), process_info.RealGroupID());
141 EXPECT_EQ(implicit_cast<gid_t>(0), process_info.EffectiveGroupID()); 141 EXPECT_EQ(implicit_cast<gid_t>(0), process_info.EffectiveGroupID());
142 EXPECT_EQ(implicit_cast<gid_t>(0), process_info.SavedGroupID()); 142 EXPECT_EQ(implicit_cast<gid_t>(0), process_info.SavedGroupID());
143 EXPECT_FALSE(process_info.AllGroups().empty()); 143 EXPECT_FALSE(process_info.AllGroups().empty());
144 } 144 }
145 145
146 } // namespace 146 } // namespace
147 } // namespace test 147 } // namespace test
148 } // namespace crashpad 148 } // namespace crashpad
OLDNEW
« no previous file with comments | « util/net/http_transport_test.cc ('k') | util/test/errors.h » ('j') | util/util_test.gyp » ('J')

Powered by Google App Engine
This is Rietveld 408576698