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: sandbox/linux/tests/unit_tests.h

Issue 103293003: Add build_config_functions.h to avoid #ifdef (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use build_config.h exclusively. Created 7 years 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 | Annotate | Revision Log
« no previous file with comments | « sandbox/linux/seccomp-bpf/sandbox_bpf_unittest.cc ('k') | sandbox/linux/tests/unit_tests.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef SANDBOX_LINUX_TESTS_UNIT_TESTS_H__ 5 #ifndef SANDBOX_LINUX_TESTS_UNIT_TESTS_H__
6 #define SANDBOX_LINUX_TESTS_UNIT_TESTS_H__ 6 #define SANDBOX_LINUX_TESTS_UNIT_TESTS_H__
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
11 11
12 namespace sandbox { 12 namespace sandbox {
13 13
14 // Has this been compiled to run on Android?
15 bool IsAndroid();
16
17 bool IsArchitectureArm();
18
19 // Is Valgrind currently being used? 14 // Is Valgrind currently being used?
20 bool IsRunningOnValgrind(); 15 bool IsRunningOnValgrind();
21 16
22 #if defined(THREAD_SANITIZER) 17 #if defined(THREAD_SANITIZER)
23 #define DISABLE_ON_TSAN(test_name) DISABLED_##test_name 18 #define DISABLE_ON_TSAN(test_name) DISABLED_##test_name
24 #else 19 #else
25 #define DISABLE_ON_TSAN(test_name) test_name 20 #define DISABLE_ON_TSAN(test_name) test_name
26 #endif // defined(THREAD_SANITIZER) 21 #endif // defined(THREAD_SANITIZER)
27 22
28 // While it is perfectly OK for a complex test to provide its own DeathCheck 23 // While it is perfectly OK for a complex test to provide its own DeathCheck
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 const std::string& msg, 121 const std::string& msg,
127 const void* aux); 122 const void* aux);
128 123
129 private: 124 private:
130 DISALLOW_IMPLICIT_CONSTRUCTORS(UnitTests); 125 DISALLOW_IMPLICIT_CONSTRUCTORS(UnitTests);
131 }; 126 };
132 127
133 } // namespace 128 } // namespace
134 129
135 #endif // SANDBOX_LINUX_TESTS_UNIT_TESTS_H__ 130 #endif // SANDBOX_LINUX_TESTS_UNIT_TESTS_H__
OLDNEW
« no previous file with comments | « sandbox/linux/seccomp-bpf/sandbox_bpf_unittest.cc ('k') | sandbox/linux/tests/unit_tests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698