| OLD | NEW |
| 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 CONTENT_TEST_BROWSER_TEST_H_ | 5 #ifndef CONTENT_PUBLIC_TEST_BROWSER_TEST_H_ |
| 6 #define CONTENT_TEST_BROWSER_TEST_H_ | 6 #define CONTENT_PUBLIC_TEST_BROWSER_TEST_H_ |
| 7 | 7 |
| 8 // We only want to use InProcessBrowserTest in test targets which properly | 8 // We only want to use InProcessBrowserTest in test targets which properly |
| 9 // isolate each test case by running each test in a separate process. | 9 // isolate each test case by running each test in a separate process. |
| 10 // This way if a test hangs the test launcher can reliably terminate it. | 10 // This way if a test hangs the test launcher can reliably terminate it. |
| 11 // | 11 // |
| 12 // InProcessBrowserTest cannot be run more than once in the same address space | 12 // InProcessBrowserTest cannot be run more than once in the same address space |
| 13 // anyway - otherwise the second test crashes. | 13 // anyway - otherwise the second test crashes. |
| 14 #if defined(HAS_OUT_OF_PROC_TEST_RUNNER) | 14 #if defined(HAS_OUT_OF_PROC_TEST_RUNNER) |
| 15 | 15 |
| 16 #include "base/compiler_specific.h" | 16 #include "base/compiler_specific.h" |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 GTEST_TEST_CLASS_NAME_(test_case_name, test_name)::AddToRegistry(); \ | 83 GTEST_TEST_CLASS_NAME_(test_case_name, test_name)::AddToRegistry(); \ |
| 84 void GTEST_TEST_CLASS_NAME_(test_case_name, test_name)::RunTestOnMainThread() | 84 void GTEST_TEST_CLASS_NAME_(test_case_name, test_name)::RunTestOnMainThread() |
| 85 | 85 |
| 86 // Wrap the real macro with an outer macro to ensure that the parameters are | 86 // Wrap the real macro with an outer macro to ensure that the parameters are |
| 87 // evaluated (e.g., if |test_name| is prefixed with MAYBE_). | 87 // evaluated (e.g., if |test_name| is prefixed with MAYBE_). |
| 88 #define IN_PROC_BROWSER_TEST_P(test_case_name, test_name) \ | 88 #define IN_PROC_BROWSER_TEST_P(test_case_name, test_name) \ |
| 89 IN_PROC_BROWSER_TEST_P_(test_case_name, test_name) | 89 IN_PROC_BROWSER_TEST_P_(test_case_name, test_name) |
| 90 | 90 |
| 91 #endif // defined(HAS_OUT_OF_PROC_TEST_RUNNER) | 91 #endif // defined(HAS_OUT_OF_PROC_TEST_RUNNER) |
| 92 | 92 |
| 93 #endif // CONTENT_TEST_BROWSER_TEST_H_ | 93 #endif // CONTENT_PUBLIC_TEST_BROWSER_TEST_H_ |
| OLD | NEW |