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

Side by Side Diff: components/data_reduction_proxy/core/browser/data_reduction_proxy_interceptor_unittest.cc

Issue 1662843002: Revert of Delete base/prefs and update callers to use components. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "components/data_reduction_proxy/core/browser/data_reduction_proxy_inte rceptor.h" 5 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_inte rceptor.h"
6 6
7 #include <string> 7 #include <string>
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/files/file_path.h" 11 #include "base/files/file_path.h"
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
14 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
15 #include "base/message_loop/message_loop.h" 15 #include "base/message_loop/message_loop.h"
16 #include "base/prefs/pref_service.h"
16 #include "base/run_loop.h" 17 #include "base/run_loop.h"
17 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_conf ig_test_utils.h" 18 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_conf ig_test_utils.h"
18 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_conf igurator.h" 19 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_conf igurator.h"
19 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_io_d ata.h" 20 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_io_d ata.h"
20 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_test _utils.h" 21 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_test _utils.h"
21 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_param s.h" 22 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_param s.h"
22 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_param s_test_utils.h" 23 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_param s_test_utils.h"
23 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_pref_ names.h" 24 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_pref_ names.h"
24 #include "components/prefs/pref_service.h"
25 #include "net/base/net_errors.h" 25 #include "net/base/net_errors.h"
26 #include "net/base/request_priority.h" 26 #include "net/base/request_priority.h"
27 #include "net/http/http_response_headers.h" 27 #include "net/http/http_response_headers.h"
28 #include "net/log/test_net_log.h" 28 #include "net/log/test_net_log.h"
29 #include "net/proxy/proxy_server.h" 29 #include "net/proxy/proxy_server.h"
30 #include "net/socket/socket_test_util.h" 30 #include "net/socket/socket_test_util.h"
31 #include "net/test/embedded_test_server/embedded_test_server.h" 31 #include "net/test/embedded_test_server/embedded_test_server.h"
32 #include "net/url_request/url_request.h" 32 #include "net/url_request/url_request.h"
33 #include "net/url_request/url_request_context_storage.h" 33 #include "net/url_request/url_request_context_storage.h"
34 #include "net/url_request/url_request_intercepting_job_factory.h" 34 #include "net/url_request/url_request_intercepting_job_factory.h"
(...skipping 477 matching lines...) Expand 10 before | Expand all | Expand 10 after
512 std::vector<GURL> expected_url_chain; 512 std::vector<GURL> expected_url_chain;
513 expected_url_chain.push_back(GURL("http://music.google.com")); 513 expected_url_chain.push_back(GURL("http://music.google.com"));
514 expected_url_chain.push_back(GURL("http://play.google.com")); 514 expected_url_chain.push_back(GURL("http://play.google.com"));
515 expected_url_chain.push_back(GURL("https://play.google.com")); 515 expected_url_chain.push_back(GURL("https://play.google.com"));
516 EXPECT_EQ(expected_url_chain, request->url_chain()); 516 EXPECT_EQ(expected_url_chain, request->url_chain());
517 } 517 }
518 518
519 } // namespace 519 } // namespace
520 520
521 } // namespace data_reduction_proxy 521 } // namespace data_reduction_proxy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698