Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(73)

Unified Diff: remoting/base/multiple_array_input_stream_unittest.cc

Issue 4017002: HostMessageDispatcher to parse control messages (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merged again Created 10 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/base/multiple_array_input_stream.cc ('k') | remoting/client/chromoting_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/base/multiple_array_input_stream_unittest.cc
diff --git a/remoting/base/multiple_array_input_stream_unittest.cc b/remoting/base/multiple_array_input_stream_unittest.cc
index 1d705fedb405c59f77075f5fea7343226e6122ca..4a840e4c30acb1622781826115ee2316c9da5aae 100644
--- a/remoting/base/multiple_array_input_stream_unittest.cc
+++ b/remoting/base/multiple_array_input_stream_unittest.cc
@@ -5,6 +5,7 @@
#include <string>
#include "base/scoped_ptr.h"
+#include "net/base/io_buffer.h"
#include "remoting/base/multiple_array_input_stream.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -71,7 +72,7 @@ static void PrepareData(scoped_ptr<MultipleArrayInputStream>* stream) {
const char* data = kTestData.c_str();
for (int i = 0; i < segments; ++i) {
int size = i % 2 == 0 ? 1 : 2;
- mstream->AddBuffer(data, size);
+ mstream->AddBuffer(new net::StringIOBuffer(std::string(data, size)), size);
data += size;
}
stream->reset(mstream);
« no previous file with comments | « remoting/base/multiple_array_input_stream.cc ('k') | remoting/client/chromoting_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698