| 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 BASE_GTEST_PROD_UTIL_H_ | 5 #ifndef BASE_GTEST_PROD_UTIL_H_ |
| 6 #define BASE_GTEST_PROD_UTIL_H_ | 6 #define BASE_GTEST_PROD_UTIL_H_ |
| 7 #pragma once | |
| 8 | 7 |
| 9 #include "testing/gtest/include/gtest/gtest_prod.h" | 8 #include "testing/gtest/include/gtest/gtest_prod.h" |
| 10 | 9 |
| 11 // This is a wrapper for gtest's FRIEND_TEST macro that friends | 10 // This is a wrapper for gtest's FRIEND_TEST macro that friends |
| 12 // test with all possible prefixes. This is very helpful when changing the test | 11 // test with all possible prefixes. This is very helpful when changing the test |
| 13 // prefix, because the friend declarations don't need to be updated. | 12 // prefix, because the friend declarations don't need to be updated. |
| 14 // | 13 // |
| 15 // Example usage: | 14 // Example usage: |
| 16 // | 15 // |
| 17 // class MyClass { | 16 // class MyClass { |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 // foo_class.private_var = true; | 59 // foo_class.private_var = true; |
| 61 // } | 60 // } |
| 62 | 61 |
| 63 #define FORWARD_DECLARE_TEST(test_case_name, test_name) \ | 62 #define FORWARD_DECLARE_TEST(test_case_name, test_name) \ |
| 64 class test_case_name##_##test_name##_Test; \ | 63 class test_case_name##_##test_name##_Test; \ |
| 65 class test_case_name##_##DISABLED_##test_name##_Test; \ | 64 class test_case_name##_##DISABLED_##test_name##_Test; \ |
| 66 class test_case_name##_##FLAKY_##test_name##_Test; \ | 65 class test_case_name##_##FLAKY_##test_name##_Test; \ |
| 67 class test_case_name##_##FAILS_##test_name##_Test | 66 class test_case_name##_##FAILS_##test_name##_Test |
| 68 | 67 |
| 69 #endif // BASE_GTEST_PROD_UTIL_H_ | 68 #endif // BASE_GTEST_PROD_UTIL_H_ |
| OLD | NEW |