OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CONTENT_COMMON_SANDBOX_MAC_UNITTEST_HELPER_H_ | 5 #ifndef CONTENT_COMMON_SANDBOX_MAC_UNITTEST_HELPER_H_ |
6 #define CONTENT_COMMON_SANDBOX_MAC_UNITTEST_HELPER_H_ | 6 #define CONTENT_COMMON_SANDBOX_MAC_UNITTEST_HELPER_H_ |
7 #pragma once | |
8 | 7 |
9 #include "base/test/multiprocess_test.h" | 8 #include "base/test/multiprocess_test.h" |
10 #include "content/common/sandbox_mac.h" | 9 #include "content/common/sandbox_mac.h" |
11 | 10 |
12 namespace sandboxtest { | 11 namespace sandboxtest { |
13 | 12 |
14 // Helpers for writing unit tests that runs in the context of the Mac sandbox. | 13 // Helpers for writing unit tests that runs in the context of the Mac sandbox. |
15 // | 14 // |
16 // How to write a sandboxed test: | 15 // How to write a sandboxed test: |
17 // 1. Create a class that inherits from MacSandboxTestCase and overrides | 16 // 1. Create a class that inherits from MacSandboxTestCase and overrides |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 namespace { \ | 112 namespace { \ |
114 sandboxtest::internal::RegisterSandboxTest<class_name> \ | 113 sandboxtest::internal::RegisterSandboxTest<class_name> \ |
115 register_test##class_name(#class_name); \ | 114 register_test##class_name(#class_name); \ |
116 } // namespace | 115 } // namespace |
117 | 116 |
118 } // namespace internal | 117 } // namespace internal |
119 | 118 |
120 } // namespace sandboxtest | 119 } // namespace sandboxtest |
121 | 120 |
122 #endif // CONTENT_COMMON_SANDBOX_MAC_UNITTEST_HELPER_H_ | 121 #endif // CONTENT_COMMON_SANDBOX_MAC_UNITTEST_HELPER_H_ |
OLD | NEW |