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