Commit Graph

23 Commits

Author SHA1 Message Date
zhanyong.wan
6a036a5c8c Fixes a nasty issue in gtest's template instantiation. 2013-02-28 23:46:07 +00:00
kosak
cc1fdb58ca Removes testing::internal::String::Format(), which causes problems as it truncates the result at 4096 chars. Also update an obsolete link in comment. 2013-02-22 20:10:40 +00:00
jgm
87fdda2cf2 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.
2012-11-15 15:47:38 +00:00
zhanyong.wan
a88c9a88e4 Improves gtest's failure messages. In particulars, char pointers and
char arrays are not escapped properly.
2012-06-07 20:34:34 +00:00
vladlosev
8965a6a0d2 Improves conformance to the Google C++ Style Guide (by Greg Miller). 2011-11-04 17:56:23 +00:00
zhanyong.wan
603533a0a4 Fixes compatibility with Borland C++Builder. Original patch by Josh
Kelley.  Simplified by Zhanyong Wan.
2011-03-05 08:04:01 +00:00
zhanyong.wan
ffeb11d14a Indents preprocessor directives. 2011-02-22 22:08:59 +00:00
zhanyong.wan
dac3e879c5 Include gtest headers as user headers instead of system headers. 2010-09-14 05:35:59 +00:00
zhanyong.wan
88e0df6247 Removes all uses of StrStream; fixes the VC projects and simplifies them by using gtest-all.cc. 2010-09-08 05:57:37 +00:00
vladlosev
d21c142eb8 C++ Builder compatibility patch by Josh Kelley. 2010-04-07 05:32:34 +00:00
zhanyong.wan
83589cca34 Supports building gtest as a DLL (by Vlad Losev). 2010-03-05 21:21:06 +00:00
zhanyong.wan
12a92c26fc Renames ThreadStartSempahore to Notificaton (by Vlad Losev); adds threading tests for SCOPED_TRACE() (by Vlad Losev); replaces native pthread calls with gtest's threading constructs (by Vlad Losev); fixes flakiness in CountedDestructor (by Vlad Losev); minor MSVC 7.1 clean-up (by Zhanyong Wan). 2010-03-04 22:15:53 +00:00
zhanyong.wan
88e97c822c Removes uses of GTEST_HAS_STD_STRING. 2009-12-16 23:34:59 +00:00
zhanyong.wan
d56773b492 Turns on -Wshadow (by Preston Jackson). 2009-12-16 19:54:05 +00:00
zhanyong.wan
b50ef44a35 Publishes the even listener API (by Vlad Losev); adds OS-indicating macros to simplify gtest code (by Zhanyong Wan). 2009-09-24 21:15:59 +00:00
zhanyong.wan
16e9dd6e28 More implementation of the event listener interface (by Vlad Losev); Reduces the stack space usage of assertions by moving AssertHelper's fields to the heap (by Jorg Brown); Makes String faster, smaller, and simpler (by Zhanyong Wan); Fixes a bug in String::Format() (by Chandler); Adds the /MD version of VC projects to the distribution (by Vlad Losev). 2009-09-04 18:30:25 +00:00
zhanyong.wan
56a2e686e9 Enables String to contain NUL (by Zhanyong Wan); Adds scons scripts (by Vlad Losev). 2009-09-01 18:53:56 +00:00
shiqian
53e0dc4041 Implements the --gtest_death_test_use_fork flag and StaticAssertTypeEq. 2009-01-08 01:10:31 +00:00
vladlosev
1998cf5d32 Allow Google Mock to initialize Google Test 2008-11-26 20:48:45 +00:00
shiqian
a2b1a8556e Adds support for type-parameterized tests (by Zhanyong Wan); also adds case-insensitive wide string comparison to the String class (by Vlad Losev). 2008-09-08 17:55:52 +00:00
shiqian
bf9b4b48dc Makes gtest work on Windows Mobile and Symbian. By Mika Raento. 2008-07-31 18:34:08 +00:00
shiqian
e4e9a8bd7d Makes the autotools scripts work on Mac OS X. Also hopefully makes gtest compile on Windows CE. 2008-07-08 21:32:17 +00:00
shiqian
d201456903 Initial import. 2008-07-03 22:38:12 +00:00