Commit Graph

36 Commits

Author SHA1 Message Date
Victor Zverovich
e2a332e5df Use a mock to test locale support 2016-05-19 17:38:44 -07:00
Victor Zverovich
afd67497de cppformat -> fmt 2016-04-24 09:06:12 -07:00
Mario Werner
d411aa165e use quotes for including cppformat headers from the tests 2016-02-02 16:58:41 +01:00
Mario Werner
fee52f79b8 update the includes in the tests to get rid of the deprecated warnings 2016-01-30 22:33:37 +01:00
vitaut
0a7e5141c1 Move posix tests from gtest-extra-test to a separate test 2015-06-24 09:16:03 -07:00
Carter Li
e2583ab5f3 Use throw() when noexcept is not supported 2015-02-14 09:58:29 +08:00
Victor Zverovich
d1ded569ff Separate memory management and formatting
Array is split into an abstract Buffer class and a concrete MemoryBuffer class. BasicWriter now does all memory allocation through a Buffer object. Subclasses of BasicWriter may use different buffer types. The new BasicMemoryBuffer class uses the default MemoryBuffer.
2014-09-29 08:48:16 -07:00
Victor Zverovich
8f8fd769ee Fix Fix https://github.com/cppformat/cppformat/issues/50 in tests too. 2014-07-29 07:50:05 -07:00
Victor Zverovich
75b5eb4b9d More fixes for https://github.com/cppformat/cppformat/issues/50. 2014-07-27 15:09:05 -07:00
Victor Zverovich
e7b6896c43 Fix tests. 2014-06-09 09:57:34 -07:00
Victor Zverovich
eaa89e23d7 Put File, BufferedFile & ErrorCode in the fmt namespace. 2014-06-09 09:07:27 -07:00
Victor Zverovich
b692ab58b2 Move POSIX wrappers to separate files. 2014-06-09 08:33:48 -07:00
Victor Zverovich
952fd7a756 Comment. 2014-05-19 07:30:32 -07:00
Victor Zverovich
df991a0f46 Fix Windows build. 2014-05-18 11:09:37 -07:00
Victor Zverovich
fb17316d77 Use stdio.h instead of cstdio for fdopen. Wrap all used POSIX functions for testing. 2014-05-15 08:58:10 -07:00
Victor Zverovich
fb4ccac951 Add BufferedFile::fileno. 2014-05-06 06:45:53 -07:00
Victor Zverovich
494f53421e Fix warnings. 2014-05-06 06:11:39 -07:00
Victor Zverovich
e44a2be8b9 Make BufferedFile::close public. 2014-05-05 17:38:39 -07:00
Victor Zverovich
0aacd0cf6d Replace EXPECT_STDOUT and EXPECT_STDERR with a single macro EXPECT_WRITE. 2014-05-05 08:35:59 -07:00
Victor Zverovich
098f8ac343 Evaluate EXPECT_STD* output argument once. 2014-05-05 08:20:01 -07:00
Victor Zverovich
536e61386d Evaluate message argument passed to EXPECT_THROW_MSG once. 2014-05-05 07:31:38 -07:00
Victor Zverovich
5434b0282c Don't die on Windows. 2014-05-05 07:11:54 -07:00
Victor Zverovich
a07350a0d4 More tests. 2014-05-04 10:08:29 -07:00
Victor Zverovich
6a4a9b773c More tests. 2014-05-04 09:01:18 -07:00
Victor Zverovich
02b185751f Add BufferedFile. OutputRedirector -> OutputRedirect. 2014-05-04 06:44:50 -07:00
Victor Zverovich
15f1f8510f Fix test. More comments. 2014-05-03 16:47:00 -07:00
Victor Zverovich
1a6d365db5 Fix move assignment. 2014-05-03 15:46:11 -07:00
Victor Zverovich
ee793b35cf File::get -> File::descriptor. 2014-05-03 15:07:28 -07:00
Victor Zverovich
c6d83b1a3b Make File::close() public. 2014-05-03 15:04:14 -07:00
Victor Zverovich
c5c2cd63bc FileDescriptor -> File 2014-05-03 12:28:02 -07:00
Victor Zverovich
98b6e59272 Add FileDescriptor::write. 2014-05-03 12:06:28 -07:00
Victor Zverovich
a297e272d1 Add FileDescriptor::read. 2014-05-03 11:26:46 -07:00
Victor Zverovich
e648d289bb Fix FileDescriptor::pipe. 2014-05-03 10:25:46 -07:00
Victor Zverovich
8214a5ef5e Fix MSVC build. 2014-05-03 10:10:50 -07:00
Victor Zverovich
1a2d7be3f5 Implement EXPECT_STDOUT and EXPECT_STDERR using pipes. 2014-05-03 09:48:54 -07:00
Victor Zverovich
f9eb0b8ba5 format-test.h -> gtest-extra.h 2014-05-02 07:23:25 -07:00