aboutsummaryrefslogtreecommitdiffstats
path: root/vbench/src/tests/app_vbench/app_vbench_test.cpp
diff options
context:
space:
mode:
authorHaavard <havardpe@yahoo-inc.com>2017-01-20 10:25:01 +0000
committerHaavard <havardpe@yahoo-inc.com>2017-01-20 10:25:01 +0000
commit31456388413d284f2325932fa65fe18497e13863 (patch)
treef83d326e990d07974891020b137ad9ee5faa9b7a /vbench/src/tests/app_vbench/app_vbench_test.cpp
parent6999811bff537b554ac7084247e50655466f6345 (diff)
simplify Input/Output APIs
Diffstat (limited to 'vbench/src/tests/app_vbench/app_vbench_test.cpp')
-rw-r--r--vbench/src/tests/app_vbench/app_vbench_test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/vbench/src/tests/app_vbench/app_vbench_test.cpp b/vbench/src/tests/app_vbench/app_vbench_test.cpp
index 37b613210a0..d1285255959 100644
--- a/vbench/src/tests/app_vbench/app_vbench_test.cpp
+++ b/vbench/src/tests/app_vbench/app_vbench_test.cpp
@@ -12,14 +12,14 @@ bool endsWith(const Memory &mem, const string &str) {
}
void readUntil(Input &input, SimpleBuffer &buffer, const string &end) {
- ByteInput in(input, 256);
+ ByteInput in(input);
while (!endsWith(buffer.get(), end)) {
int c = in.get();
if (c < 0) {
return;
}
buffer.reserve(1).data[0] = c;
- buffer.commit(1, 0);
+ buffer.commit(1);
}
}