comparison UnitTestsSources/StreamTests.cpp @ 2140:aa4b8895cd23

reorganization
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 09 Nov 2016 16:12:47 +0100
parents 38fb3f524d81
children 5a8840920121
comparison
equal deleted inserted replaced
2139:764c9157301b 2140:aa4b8895cd23
231 const std::string& path = "UnitTestsResults/stream"; 231 const std::string& path = "UnitTestsResults/stream";
232 const std::string s = "Hello world"; 232 const std::string s = "Hello world";
233 std::string t; 233 std::string t;
234 234
235 { 235 {
236 Toolbox::WriteFile(s, path); 236 SystemToolbox::WriteFile(s, path);
237 FilesystemHttpSender sender(path); 237 FilesystemHttpSender sender(path);
238 ASSERT_TRUE(ReadAllStream(t, sender)); 238 ASSERT_TRUE(ReadAllStream(t, sender));
239 ASSERT_EQ(s, t); 239 ASSERT_EQ(s, t);
240 } 240 }
241 241
242 { 242 {
243 Toolbox::WriteFile("", path); 243 SystemToolbox::WriteFile("", path);
244 FilesystemHttpSender sender(path); 244 FilesystemHttpSender sender(path);
245 ASSERT_TRUE(ReadAllStream(t, sender)); 245 ASSERT_TRUE(ReadAllStream(t, sender));
246 ASSERT_EQ(0u, t.size()); 246 ASSERT_EQ(0u, t.size());
247 } 247 }
248 } 248 }