aboutsummaryrefslogtreecommitdiffstats
path: root/include/gmock/internal/gmock-port.h
diff options
context:
space:
mode:
authorjgm <jgm@google.com>2012-11-15 15:50:36 +0000
committerjgm <jgm@google.com>2012-11-15 15:50:36 +0000
commit38513a8bb154f0b6d0a4088814fe92552696d465 (patch)
tree95e50c814602bcfb0b62cc06f5843feefa9b1a1e /include/gmock/internal/gmock-port.h
parentada23475e27babd85fb9c13250243f6acfd3ffd8 (diff)
downloadgoogletest-38513a8bb154f0b6d0a4088814fe92552696d465.tar.gz
googletest-38513a8bb154f0b6d0a4088814fe92552696d465.tar.bz2
googletest-38513a8bb154f0b6d0a4088814fe92552696d465.zip
Unfortunately, the svn repo is a bit out of date. This commit contains 8
changes that haven't made it to svn. The descriptions of each change are listed below. - Fixes some python shebang lines. - Add ElementsAreArray overloads to gmock. ElementsAreArray now makes a copy of its input elements before the conversion to a Matcher. ElementsAreArray can now take a vector as input. ElementsAreArray can now take an iterator pair as input. - Templatize MatchAndExplain to allow independent string types for the matcher and matchee. I also templatized the ConstCharPointer version of MatchAndExplain to avoid calls with "char*" from using the new templated MatchAndExplain. - Fixes the bug where the constructor of the return type of ElementsAre() saves a reference instead of a copy of the arguments. - Extends ElementsAre() to accept arrays whose sizes aren't known. - Switches gTest's internal FilePath class from testing::internal::String to std::string. testing::internal::String was introduced when gTest couldn't depend on std::string. It's now deprecated. - Switches gTest & gMock from using testing::internal::String objects to std::string. Some static methods of String are still in use. We may be able to remove some but not all of them. In particular, String::Format() should eventually be removed as it truncates the result at 4096 characters, often causing problems.
Diffstat (limited to 'include/gmock/internal/gmock-port.h')
-rw-r--r--include/gmock/internal/gmock-port.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/gmock/internal/gmock-port.h b/include/gmock/internal/gmock-port.h
index 6a515d87..b6c5c7f1 100644
--- a/include/gmock/internal/gmock-port.h
+++ b/include/gmock/internal/gmock-port.h
@@ -65,7 +65,7 @@
#define GMOCK_DECLARE_int32_(name) \
extern GTEST_API_ ::testing::internal::Int32 GMOCK_FLAG(name)
#define GMOCK_DECLARE_string_(name) \
- extern GTEST_API_ ::testing::internal::String GMOCK_FLAG(name)
+ extern GTEST_API_ ::std::string GMOCK_FLAG(name)
// Macros for defining flags.
#define GMOCK_DEFINE_bool_(name, default_val, doc) \
@@ -73,6 +73,6 @@
#define GMOCK_DEFINE_int32_(name, default_val, doc) \
GTEST_API_ ::testing::internal::Int32 GMOCK_FLAG(name) = (default_val)
#define GMOCK_DEFINE_string_(name, default_val, doc) \
- GTEST_API_ ::testing::internal::String GMOCK_FLAG(name) = (default_val)
+ GTEST_API_ ::std::string GMOCK_FLAG(name) = (default_val)
#endif // GMOCK_INCLUDE_GMOCK_INTERNAL_GMOCK_PORT_H_