aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Baptiste Queru <jbq@google.com>2012-06-11 11:57:28 -0700
committerandroid code review <noreply-gerritcodereview@google.com>2012-06-11 11:57:28 -0700
commitfd5f0270e58eec02a4b23981d18ad9d74113a5d6 (patch)
tree277c3afe6235bf013490f7de08fddb1d84da7e33
parente6eec1e862a0765a93bba93870fc4bb086865b57 (diff)
parent624efe61c31c1bb6e532a8f09b4d56f9b2376984 (diff)
downloadgtest-ics-plus-aosp.tar.gz
Merge "gtest: Fix build with gcc 4.7"android-sdk-adt_r20tools_r20ics-plus-aosp
-rw-r--r--include/gtest/gtest-param-test.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/gtest/gtest-param-test.h b/include/gtest/gtest-param-test.h
index 421517d..ee21fa4 100644
--- a/include/gtest/gtest-param-test.h
+++ b/include/gtest/gtest-param-test.h
@@ -155,7 +155,6 @@ INSTANTIATE_TEST_CASE_P(AnotherInstantiationName, FooTest, ValuesIn(pets));
#include <gtest/internal/gtest-internal.h>
#include <gtest/internal/gtest-param-util.h>
-#include <gtest/internal/gtest-param-util-generated.h>
namespace testing {
@@ -289,6 +288,10 @@ internal::ParamGenerator<typename Container::value_type> ValuesIn(
return ValuesIn(container.begin(), container.end());
}
+} // namespace testing
+#include <gtest/internal/gtest-param-util-generated.h> // Must be included after ValuesIn and friends are defined
+namespace testing { // And back in...
+
// Values() allows generating tests from explicitly specified list of
// parameters.
//