diff data/fileio/test/CSVStreamWriterTest.h @ 1438:09c2ba31a711 streaming-csv-writer

Formatting and naming changes more in line with SV conventions.
author Lucas Thompson <dev@lucas.im>
date Tue, 17 Apr 2018 10:03:49 +0100
parents 0684c6698e3f
children 04caefd35391
line wrap: on
line diff
--- a/data/fileio/test/CSVStreamWriterTest.h	Tue Apr 17 10:03:49 2018 +0100
+++ b/data/fileio/test/CSVStreamWriterTest.h	Tue Apr 17 10:03:49 2018 +0100
@@ -4,7 +4,7 @@
     Sonic Visualiser
     An audio file viewer and annotation editor.
     Centre for Digital Music, Queen Mary, University of London.
-    This file copyright 2017 Lucas Thompson.
+    This file copyright 2017 Queen Mary, University of London.
     
     This program is free software; you can redistribute it and/or
     modify it under the terms of the GNU General Public License as
@@ -87,7 +87,7 @@
         MockWaveModel mwm({ DC, DC }, 16, 4);
 
         std::ostringstream oss;
-        const auto result = CSV::writeToStreamInChunks(oss, mwm);
+        const auto result = CSVStreamWriter::writeInChunks(oss, mwm);
         QVERIFY( oss.str() == getExpectedString() );
         QVERIFY( result );
     }
@@ -100,7 +100,7 @@
 
         std::ostringstream oss;
         const auto writeStreamWithBlockSize = [&](int blockSize) {
-            return CSV::writeToStreamInChunks(
+            return CSVStreamWriter::writeInChunks(
                 oss,
                 mwm,
                 &reporter,
@@ -144,7 +144,7 @@
         StubReporter reporter { []() -> bool { return true; } };
 
         std::ostringstream oss;
-        const auto cancelImmediately = CSV::writeToStreamInChunks(
+        const auto cancelImmediately = CSVStreamWriter::writeInChunks(
             oss,
             mwm,
             &reporter,
@@ -158,7 +158,7 @@
         StubReporter cancelMidway { 
             [&]() { return cancelMidway.getCallCount() == 3; } 
         };
-        const auto cancelledMidway = CSV::writeToStreamInChunks(
+        const auto cancelledMidway = CSVStreamWriter::writeInChunks(
             oss,
             mwm,
             &cancelMidway,