Skip to content

Commit

Permalink
Merge "gtest: Fix build with gcc 4.7"
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean-Baptiste Queru authored and android code review committed Jun 11, 2012
2 parents e6eec1e + 624efe6 commit fd5f027
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion include/gtest/gtest-param-test.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand Down Expand Up @@ -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.
//
Expand Down

0 comments on commit fd5f027

Please sign in to comment.