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

Side by Side Diff: util/mac/process_reader_test.cc

Issue 635883002: Don’t use using directives (“using namespace”) in tests (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: 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 | « util/mac/mach_o_image_segment_reader_test.cc ('k') | util/mac/process_types_test.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 22 matching lines...) Expand all
33 #include "util/file/fd_io.h" 33 #include "util/file/fd_io.h"
34 #include "util/mac/mach_o_image_reader.h" 34 #include "util/mac/mach_o_image_reader.h"
35 #include "util/mach/mach_extensions.h" 35 #include "util/mach/mach_extensions.h"
36 #include "util/stdlib/pointer_container.h" 36 #include "util/stdlib/pointer_container.h"
37 #include "util/synchronization/semaphore.h" 37 #include "util/synchronization/semaphore.h"
38 #include "util/test/errors.h" 38 #include "util/test/errors.h"
39 #include "util/test/mac/dyld.h" 39 #include "util/test/mac/dyld.h"
40 #include "util/test/mac/mach_errors.h" 40 #include "util/test/mac/mach_errors.h"
41 #include "util/test/mac/mach_multiprocess.h" 41 #include "util/test/mac/mach_multiprocess.h"
42 42
43 namespace crashpad {
44 namespace test {
43 namespace { 45 namespace {
44 46
45 using namespace crashpad;
46 using namespace crashpad::test;
47
48 TEST(ProcessReader, SelfBasic) { 47 TEST(ProcessReader, SelfBasic) {
49 ProcessReader process_reader; 48 ProcessReader process_reader;
50 ASSERT_TRUE(process_reader.Initialize(mach_task_self())); 49 ASSERT_TRUE(process_reader.Initialize(mach_task_self()));
51 50
52 #if !defined(ARCH_CPU_64_BITS) 51 #if !defined(ARCH_CPU_64_BITS)
53 EXPECT_FALSE(process_reader.Is64Bit()); 52 EXPECT_FALSE(process_reader.Is64Bit());
54 #else 53 #else
55 EXPECT_TRUE(process_reader.Is64Bit()); 54 EXPECT_TRUE(process_reader.Is64Bit());
56 #endif 55 #endif
57 56
(...skipping 630 matching lines...) Expand 10 before | Expand all | Expand 10 after
688 687
689 DISALLOW_COPY_AND_ASSIGN(ProcessReaderModulesChild); 688 DISALLOW_COPY_AND_ASSIGN(ProcessReaderModulesChild);
690 }; 689 };
691 690
692 TEST(ProcessReader, ChildModules) { 691 TEST(ProcessReader, ChildModules) {
693 ProcessReaderModulesChild process_reader_modules_child; 692 ProcessReaderModulesChild process_reader_modules_child;
694 process_reader_modules_child.Run(); 693 process_reader_modules_child.Run();
695 } 694 }
696 695
697 } // namespace 696 } // namespace
697 } // namespace test
698 } // namespace crashpad
OLDNEW
« no previous file with comments | « util/mac/mach_o_image_segment_reader_test.cc ('k') | util/mac/process_types_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698