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

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: push_messaging fix Created 3 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
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 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 302
303 mojom::URLLoaderAssociatedRequest PassLoaderRequest() { 303 mojom::URLLoaderAssociatedRequest PassLoaderRequest() {
304 return std::move(loader_request_); 304 return std::move(loader_request_);
305 } 305 }
306 306
307 mojom::URLLoaderClientPtr PassClientPtr() { return std::move(client_ptr_); } 307 mojom::URLLoaderClientPtr PassClientPtr() { return std::move(client_ptr_); }
308 308
309 void SyncLoad(int32_t routing_id, 309 void SyncLoad(int32_t routing_id,
310 int32_t request_id, 310 int32_t request_id,
311 const ResourceRequest& url_request, 311 const ResourceRequest& url_request,
312 const SyncLoadCallback& callback) override { 312 SyncLoadCallback callback) override {
313 NOTREACHED(); 313 NOTREACHED();
314 } 314 }
315 315
316 private: 316 private:
317 mojom::URLLoaderAssociatedRequest loader_request_; 317 mojom::URLLoaderAssociatedRequest loader_request_;
318 mojom::URLLoaderClientPtr client_ptr_; 318 mojom::URLLoaderClientPtr client_ptr_;
319 319
320 DISALLOW_COPY_AND_ASSIGN(TestURLLoaderFactory); 320 DISALLOW_COPY_AND_ASSIGN(TestURLLoaderFactory);
321 }; 321 };
322 322
(...skipping 1034 matching lines...) Expand 10 before | Expand all | Expand 10 after
1357 } 1357 }
1358 } 1358 }
1359 EXPECT_EQ("B", body); 1359 EXPECT_EQ("B", body);
1360 } 1360 }
1361 1361
1362 INSTANTIATE_TEST_CASE_P(MojoAsyncResourceHandlerWithAllocationSizeTest, 1362 INSTANTIATE_TEST_CASE_P(MojoAsyncResourceHandlerWithAllocationSizeTest,
1363 MojoAsyncResourceHandlerWithAllocationSizeTest, 1363 MojoAsyncResourceHandlerWithAllocationSizeTest,
1364 ::testing::Values(8, 32 * 2014)); 1364 ::testing::Values(8, 32 * 2014));
1365 } // namespace 1365 } // namespace
1366 } // namespace content 1366 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698