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

Side by Side Diff: components/data_reduction_proxy/content/browser/content_lofi_decider_unittest.cc

Issue 1683953002: Remove unused DataReductionProxy code (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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/content/browser/content_lofi_decider.h " 5 #include "components/data_reduction_proxy/content/browser/content_lofi_decider.h "
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 .WithMockClientSocketFactory(&mock_socket_factory_) 72 .WithMockClientSocketFactory(&mock_socket_factory_)
73 .WithURLRequestContext(&context_) 73 .WithURLRequestContext(&context_)
74 .Build(); 74 .Build();
75 75
76 data_reduction_proxy_network_delegate_.reset( 76 data_reduction_proxy_network_delegate_.reset(
77 new DataReductionProxyNetworkDelegate( 77 new DataReductionProxyNetworkDelegate(
78 scoped_ptr<net::NetworkDelegate>(new net::NetworkDelegateImpl()), 78 scoped_ptr<net::NetworkDelegate>(new net::NetworkDelegateImpl()),
79 test_context_->config(), 79 test_context_->config(),
80 test_context_->io_data()->request_options(), 80 test_context_->io_data()->request_options(),
81 test_context_->configurator(), 81 test_context_->configurator(),
82 test_context_->io_data()->experiments_stats(),
83 test_context_->net_log(), test_context_->event_creator())); 82 test_context_->net_log(), test_context_->event_creator()));
84 83
85 data_reduction_proxy_network_delegate_->InitIODataAndUMA( 84 data_reduction_proxy_network_delegate_->InitIODataAndUMA(
86 test_context_->io_data(), test_context_->io_data()->bypass_stats()); 85 test_context_->io_data(), test_context_->io_data()->bypass_stats());
87 86
88 context_.set_network_delegate(data_reduction_proxy_network_delegate_.get()); 87 context_.set_network_delegate(data_reduction_proxy_network_delegate_.get());
89 88
90 scoped_ptr<data_reduction_proxy::ContentLoFiDecider> 89 scoped_ptr<data_reduction_proxy::ContentLoFiDecider>
91 data_reduction_proxy_lofi_decider( 90 data_reduction_proxy_lofi_decider(
92 new data_reduction_proxy::ContentLoFiDecider()); 91 new data_reduction_proxy::ContentLoFiDecider());
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 scoped_ptr<net::URLRequest> request = 389 scoped_ptr<net::URLRequest> request =
391 CreateRequest(tests[i].network_prohibitively_slow); 390 CreateRequest(tests[i].network_prohibitively_slow);
392 net::HttpRequestHeaders headers; 391 net::HttpRequestHeaders headers;
393 NotifyBeforeSendProxyHeaders(&headers, request.get()); 392 NotifyBeforeSendProxyHeaders(&headers, request.get());
394 393
395 VerifyLoFiHeader(expect_lofi_header, headers); 394 VerifyLoFiHeader(expect_lofi_header, headers);
396 } 395 }
397 } 396 }
398 397
399 } // namespace data_reduction_roxy 398 } // namespace data_reduction_roxy
OLDNEW
« no previous file with comments | « components/data_reduction_proxy.gypi ('k') | components/data_reduction_proxy/core/browser/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698