From 5760f35e1517a660958116f8c4aa81d941e8def8 Mon Sep 17 00:00:00 2001 From: Eli Friedman Date: Fri, 18 Dec 2009 21:38:44 +0000 Subject: [PATCH] Fix an issue in googletest where a name was used before it was defined. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91718 91177308-0d34-0410-b5e6-96231b3b80d8 --- utils/unittest/googletest/include/gtest/gtest-param-test.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/utils/unittest/googletest/include/gtest/gtest-param-test.h b/utils/unittest/googletest/include/gtest/gtest-param-test.h index 2d63237f562..0cf05dc7ed9 100644 --- a/utils/unittest/googletest/include/gtest/gtest-param-test.h +++ b/utils/unittest/googletest/include/gtest/gtest-param-test.h @@ -155,7 +155,6 @@ INSTANTIATE_TEST_CASE_P(AnotherInstantiationName, FooTest, ValuesIn(pets)); #include #include -#include namespace testing { @@ -289,6 +288,12 @@ internal::ParamGenerator ValuesIn( return ValuesIn(container.begin(), container.end()); } +} // namespace testing + +#include + +namespace testing { + // Values() allows generating tests from explicitly specified list of // parameters. //