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

Side by Side Diff: content/network/url_loader_unittest.cc

Issue 2976323002: Hook up ProfileIOData's URLRequestContext to a NetworkService. (Closed)
Patch Set: Response to comments Created 3 years, 5 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
« no previous file with comments | « content/network/network_context.h ('k') | content/public/browser/content_browser_client.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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/files/file_util.h" 5 #include "base/files/file_util.h"
6 #include "base/path_service.h" 6 #include "base/path_service.h"
7 #include "base/run_loop.h" 7 #include "base/run_loop.h"
8 #include "base/test/scoped_task_environment.h" 8 #include "base/test/scoped_task_environment.h"
9 #include "base/threading/thread_task_runner_handle.h" 9 #include "base/threading/thread_task_runner_handle.h"
10 #include "content/network/network_context.h" 10 #include "content/network/network_context.h"
11 #include "content/network/url_loader_impl.h" 11 #include "content/network/url_loader_impl.h"
12 #include "content/public/common/appcache_info.h"
12 #include "content/public/common/content_paths.h" 13 #include "content/public/common/content_paths.h"
13 #include "content/public/test/test_url_loader_client.h" 14 #include "content/public/test/test_url_loader_client.h"
14 #include "mojo/public/c/system/data_pipe.h" 15 #include "mojo/public/c/system/data_pipe.h"
15 #include "mojo/public/cpp/system/wait.h" 16 #include "mojo/public/cpp/system/wait.h"
16 #include "net/test/embedded_test_server/embedded_test_server.h" 17 #include "net/test/embedded_test_server/embedded_test_server.h"
17 #include "net/traffic_annotation/network_traffic_annotation_test_helper.h" 18 #include "net/traffic_annotation/network_traffic_annotation_test_helper.h"
18 #include "testing/gtest/include/gtest/gtest.h" 19 #include "testing/gtest/include/gtest/gtest.h"
19 20
20 namespace content { 21 namespace content {
21 22
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 // client receiving a connection error. 186 // client receiving a connection error.
186 DestroyContext(); 187 DestroyContext();
187 EXPECT_FALSE(loader_impl); 188 EXPECT_FALSE(loader_impl);
188 189
189 client.RunUntilConnectionError(); 190 client.RunUntilConnectionError();
190 EXPECT_FALSE(client.has_received_completion()); 191 EXPECT_FALSE(client.has_received_completion());
191 EXPECT_EQ(0u, client.download_data_length()); 192 EXPECT_EQ(0u, client.download_data_length());
192 } 193 }
193 194
194 } // namespace content 195 } // namespace content
OLDNEW
« no previous file with comments | « content/network/network_context.h ('k') | content/public/browser/content_browser_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698