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

Side by Side Diff: content/browser/streams/stream_url_request_job_unittest.cc

Issue 13145003: Rewrite std::string("") to std::string(), Linux edition. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Ugh Created 7 years, 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/message_loop.h" 5 #include "base/message_loop.h"
6 #include "base/test/test_simple_task_runner.h" 6 #include "base/test/test_simple_task_runner.h"
7 #include "content/browser/streams/stream.h" 7 #include "content/browser/streams/stream.h"
8 #include "content/browser/streams/stream_registry.h" 8 #include "content/browser/streams/stream_registry.h"
9 #include "content/browser/streams/stream_url_request_job.h" 9 #include "content/browser/streams/stream_url_request_job.h"
10 #include "content/browser/streams/stream_write_observer.h" 10 #include "content/browser/streams/stream_write_observer.h"
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 new Stream(registry_.get(), NULL, GURL(), kStreamURL)); 162 new Stream(registry_.get(), NULL, GURL(), kStreamURL));
163 163
164 scoped_refptr<net::StringIOBuffer> buffer( 164 scoped_refptr<net::StringIOBuffer> buffer(
165 new net::StringIOBuffer(kTestData2)); 165 new net::StringIOBuffer(kTestData2));
166 166
167 stream->AddData(buffer, buffer->size()); 167 stream->AddData(buffer, buffer->size());
168 stream->Finalize(); 168 stream->Finalize();
169 169
170 net::HttpRequestHeaders extra_headers; 170 net::HttpRequestHeaders extra_headers;
171 extra_headers.SetHeader(net::HttpRequestHeaders::kRange, "bytes=1-3"); 171 extra_headers.SetHeader(net::HttpRequestHeaders::kRange, "bytes=1-3");
172 TestRequest("GET", kStreamURL, extra_headers, 405, ""); 172 TestRequest("GET", kStreamURL, extra_headers, 405, std::string());
173 } 173 }
174 174
175 } // namespace content 175 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/storage_partition_impl_map_unittest.cc ('k') | content/browser/tracing/tracing_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698