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

Unified Diff: webrtc/base/gtest_prod_util.h

Issue 2877023002: Move webrtc/{base => rtc_base} (Closed)
Patch Set: update presubmit.py and DEPS include rules Created 3 years, 6 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 | « webrtc/base/function_view_unittest.cc ('k') | webrtc/base/gunit.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/base/gtest_prod_util.h
diff --git a/webrtc/base/gtest_prod_util.h b/webrtc/base/gtest_prod_util.h
index f0cb1145f9d1d9fc492621fef716180c777a64c3..0c25943f2c557e5795a373fc7f513c12291ad6f8 100644
--- a/webrtc/base/gtest_prod_util.h
+++ b/webrtc/base/gtest_prod_util.h
@@ -11,28 +11,9 @@
#ifndef WEBRTC_BASE_GTEST_PROD_UTIL_H_
#define WEBRTC_BASE_GTEST_PROD_UTIL_H_
-// Define our own version of FRIEND_TEST here rather than including
-// gtest_prod.h to avoid depending on any part of GTest in production code.
-#define FRIEND_TEST_WEBRTC(test_case_name, test_name)\
-friend class test_case_name##_##test_name##_Test
-// This file is a plain copy of Chromium's base/gtest_prod_util.h.
-//
-// This is a wrapper for gtest's FRIEND_TEST macro that friends
-// test with all possible prefixes. This is very helpful when changing the test
-// prefix, because the friend declarations don't need to be updated.
-//
-// Example usage:
-//
-// class MyClass {
-// private:
-// void MyMethod();
-// FRIEND_TEST_ALL_PREFIXES(MyClassTest, MyMethod);
-// };
-#define FRIEND_TEST_ALL_PREFIXES(test_case_name, test_name) \
- FRIEND_TEST_WEBRTC(test_case_name, test_name); \
- FRIEND_TEST_WEBRTC(test_case_name, DISABLED_##test_name); \
- FRIEND_TEST_WEBRTC(test_case_name, FLAKY_##test_name); \
- FRIEND_TEST_WEBRTC(test_case_name, FAILS_##test_name)
+// This header is deprecated and is just left here temporarily during
+// refactoring. See https://bugs.webrtc.org/7634 for more details.
+#include "webrtc/rtc_base/gtest_prod_util.h"
#endif // WEBRTC_BASE_GTEST_PROD_UTIL_H_
« no previous file with comments | « webrtc/base/function_view_unittest.cc ('k') | webrtc/base/gunit.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698