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

Side by Side Diff: content/browser/loader/mojo_async_resource_handler_unittest.cc

Issue 2824193002: Enable use_once_callback for //content/common/*.mojom (Closed)
Patch Set: rebase Created 3 years, 7 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "content/browser/loader/mojo_async_resource_handler.h" 5 #include "content/browser/loader/mojo_async_resource_handler.h"
6 6
7 #include <string.h> 7 #include <string.h>
8 8
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 303
304 mojom::URLLoaderAssociatedRequest PassLoaderRequest() { 304 mojom::URLLoaderAssociatedRequest PassLoaderRequest() {
305 return std::move(loader_request_); 305 return std::move(loader_request_);
306 } 306 }
307 307
308 mojom::URLLoaderClientPtr PassClientPtr() { return std::move(client_ptr_); } 308 mojom::URLLoaderClientPtr PassClientPtr() { return std::move(client_ptr_); }
309 309
310 void SyncLoad(int32_t routing_id, 310 void SyncLoad(int32_t routing_id,
311 int32_t request_id, 311 int32_t request_id,
312 const ResourceRequest& url_request, 312 const ResourceRequest& url_request,
313 const SyncLoadCallback& callback) override { 313 SyncLoadCallback callback) override {
314 NOTREACHED(); 314 NOTREACHED();
315 } 315 }
316 316
317 private: 317 private:
318 mojom::URLLoaderAssociatedRequest loader_request_; 318 mojom::URLLoaderAssociatedRequest loader_request_;
319 mojom::URLLoaderClientPtr client_ptr_; 319 mojom::URLLoaderClientPtr client_ptr_;
320 320
321 DISALLOW_COPY_AND_ASSIGN(TestURLLoaderFactory); 321 DISALLOW_COPY_AND_ASSIGN(TestURLLoaderFactory);
322 }; 322 };
323 323
(...skipping 1035 matching lines...) Expand 10 before | Expand all | Expand 10 after
1359 } 1359 }
1360 } 1360 }
1361 EXPECT_EQ("B", body); 1361 EXPECT_EQ("B", body);
1362 } 1362 }
1363 1363
1364 INSTANTIATE_TEST_CASE_P(MojoAsyncResourceHandlerWithAllocationSizeTest, 1364 INSTANTIATE_TEST_CASE_P(MojoAsyncResourceHandlerWithAllocationSizeTest,
1365 MojoAsyncResourceHandlerWithAllocationSizeTest, 1365 MojoAsyncResourceHandlerWithAllocationSizeTest,
1366 ::testing::Values(8, 32 * 2014)); 1366 ::testing::Values(8, 32 * 2014));
1367 } // namespace 1367 } // namespace
1368 } // namespace content 1368 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/leveldb_wrapper_impl.cc ('k') | content/browser/loader/navigation_url_loader_network_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698