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

Unified Diff: base/gtest_prod_util.h

Issue 1647803004: Move base to DEPS (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 4 years, 11 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 | « base/gmock_unittest.cc ('k') | base/guid.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
deleted file mode 100644
index 3289e6301da7182ea5fc7689557745dd2ff6f747..0000000000000000000000000000000000000000
--- a/base/gtest_prod_util.h
+++ /dev/null
@@ -1,66 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef BASE_GTEST_PROD_UTIL_H_
-#define BASE_GTEST_PROD_UTIL_H_
-
-#include "testing/gtest/include/gtest/gtest_prod.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(test_case_name, test_name); \
- FRIEND_TEST(test_case_name, DISABLED_##test_name); \
- FRIEND_TEST(test_case_name, FLAKY_##test_name)
-
-// C++ compilers will refuse to compile the following code:
-//
-// namespace foo {
-// class MyClass {
-// private:
-// FRIEND_TEST_ALL_PREFIXES(MyClassTest, TestMethod);
-// bool private_var;
-// };
-// } // namespace foo
-//
-// class MyClassTest::TestMethod() {
-// foo::MyClass foo_class;
-// foo_class.private_var = true;
-// }
-//
-// Unless you forward declare MyClassTest::TestMethod outside of namespace foo.
-// Use FORWARD_DECLARE_TEST to do so for all possible prefixes.
-//
-// Example usage:
-//
-// FORWARD_DECLARE_TEST(MyClassTest, TestMethod);
-//
-// namespace foo {
-// class MyClass {
-// private:
-// FRIEND_TEST_ALL_PREFIXES(::MyClassTest, TestMethod); // NOTE use of ::
-// bool private_var;
-// };
-// } // namespace foo
-//
-// class MyClassTest::TestMethod() {
-// foo::MyClass foo_class;
-// foo_class.private_var = true;
-// }
-
-#define FORWARD_DECLARE_TEST(test_case_name, 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
-
-#endif // BASE_GTEST_PROD_UTIL_H_
« no previous file with comments | « base/gmock_unittest.cc ('k') | base/guid.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698