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

Unified Diff: base/gtest_prod_util.h

Issue 9350051: Removing unneeded macro (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Nits Created 8 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/ui/webui/print_preview/sticky_settings.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/gtest_prod_util.h
diff --git a/base/gtest_prod_util.h b/base/gtest_prod_util.h
index 2db5853aa974451b5e9dceaf6dc6be4a23bd9310..38a72b4bcc2e7c4882e6eba71f92ab1db70ca1ca 100644
--- a/base/gtest_prod_util.h
+++ b/base/gtest_prod_util.h
@@ -41,11 +41,11 @@
// }
//
// Unless you forward declare MyClassTest::TestMethod outside of namespace foo.
-// Use FORWARD_DECLARE_TEST_ALL_PREFIXES to do so for all possible prefixes.
+// Use FORWARD_DECLARE_TEST to do so for all possible prefixes.
//
// Example usage:
//
-// FORWARD_DECLARE_TEST_ALL_PREFIXES(MyClassTest, TestMethod);
+// FORWARD_DECLARE_TEST(MyClassTest, TestMethod);
//
// namespace foo {
// class MyClass {
@@ -61,12 +61,9 @@
// }
#define FORWARD_DECLARE_TEST(test_case_name, test_name) \
-class test_case_name##_##test_name##_Test\
-
-#define FORWARD_DECLARE_TEST_ALL_PREFIXES(test_case_name, test_name) \
- FORWARD_DECLARE_TEST(test_case_name, test_name); \
- FORWARD_DECLARE_TEST(test_case_name, DISABLED_##test_name); \
- FORWARD_DECLARE_TEST(test_case_name, FLAKY_##test_name); \
- FORWARD_DECLARE_TEST(test_case_name, FAILS_##test_name)
+ class test_case_name##_##test_name##_Test; \
+ class test_case_name##_##DISABLED_##test_name##_Test; \
+ class test_case_name##_##FLAKY_##test_name##_Test; \
+ class test_case_name##_##FAILS_##test_name##_Test
#endif // BASE_GTEST_PROD_UTIL_H_
« no previous file with comments | « no previous file | chrome/browser/ui/webui/print_preview/sticky_settings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698