summaryrefslogtreecommitdiffstats
path: root/llvm/utils/unittest/googletest/include/gtest/internal/gtest-param-util-generated.h
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2010-06-02 22:02:30 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2010-06-02 22:02:30 +0000
commitbfb492d6c8d99562ce92f1e4152d5a7b36f5c1fa (patch)
treef205bf7a16d40ca53d15f1f4f3eee0a0216c8816 /llvm/utils/unittest/googletest/include/gtest/internal/gtest-param-util-generated.h
parent78b6a290cb95a9148ef0d02cd94b2742cc13474d (diff)
downloadbcm5719-llvm-bfb492d6c8d99562ce92f1e4152d5a7b36f5c1fa.tar.gz
bcm5719-llvm-bfb492d6c8d99562ce92f1e4152d5a7b36f5c1fa.zip
Merge gtest-1.5.0.
llvm-svn: 105354
Diffstat (limited to 'llvm/utils/unittest/googletest/include/gtest/internal/gtest-param-util-generated.h')
-rw-r--r--llvm/utils/unittest/googletest/include/gtest/internal/gtest-param-util-generated.h21
1 files changed, 19 insertions, 2 deletions
diff --git a/llvm/utils/unittest/googletest/include/gtest/internal/gtest-param-util-generated.h b/llvm/utils/unittest/googletest/include/gtest/internal/gtest-param-util-generated.h
index 1358c329f4a..ab4ab566256 100644
--- a/llvm/utils/unittest/googletest/include/gtest/internal/gtest-param-util-generated.h
+++ b/llvm/utils/unittest/googletest/include/gtest/internal/gtest-param-util-generated.h
@@ -44,13 +44,30 @@
#ifndef GTEST_INCLUDE_GTEST_INTERNAL_GTEST_PARAM_UTIL_GENERATED_H_
#define GTEST_INCLUDE_GTEST_INTERNAL_GTEST_PARAM_UTIL_GENERATED_H_
+// scripts/fuse_gtest.py depends on gtest's own header being #included
+// *unconditionally*. Therefore these #includes cannot be moved
+// inside #if GTEST_HAS_PARAM_TEST.
+#include <gtest/internal/gtest-param-util.h>
#include <gtest/internal/gtest-port.h>
#if GTEST_HAS_PARAM_TEST
-#include <gtest/internal/gtest-param-util.h>
-
namespace testing {
+
+// Forward declarations of ValuesIn(), which is implemented in
+// include/gtest/gtest-param-test.h.
+template <typename ForwardIterator>
+internal::ParamGenerator<
+ typename ::std::iterator_traits<ForwardIterator>::value_type> ValuesIn(
+ ForwardIterator begin, ForwardIterator end);
+
+template <typename T, size_t N>
+internal::ParamGenerator<T> ValuesIn(const T (&array)[N]);
+
+template <class Container>
+internal::ParamGenerator<typename Container::value_type> ValuesIn(
+ const Container& container);
+
namespace internal {
// Used in the Values() function to provide polymorphic capabilities.
OpenPOWER on IntegriCloud