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

Side by Side Diff: google_apis/gcm/tools/mcs_probe.cc

Issue 375663002: Leverage profile's http network session's HttpAuthCache to support proxy auth. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix test Created 6 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 | Annotate | Revision Log
« no previous file with comments | « google_apis/gcm/engine/connection_factory_impl_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 // A standalone tool for testing MCS connections and the MCS client on their 5 // A standalone tool for testing MCS connections and the MCS client on their
6 // own. 6 // own.
7 7
8 #include <cstddef> 8 #include <cstddef>
9 #include <cstdio> 9 #include <cstdio>
10 #include <string> 10 #include <string>
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 InitializeNetworkState(); 296 InitializeNetworkState();
297 BuildNetworkSession(); 297 BuildNetworkSession();
298 std::vector<GURL> endpoints(1, 298 std::vector<GURL> endpoints(1,
299 GURL("https://" + 299 GURL("https://" +
300 net::HostPortPair(server_host_, 300 net::HostPortPair(server_host_,
301 server_port_).ToString())); 301 server_port_).ToString()));
302 connection_factory_.reset( 302 connection_factory_.reset(
303 new ConnectionFactoryImpl(endpoints, 303 new ConnectionFactoryImpl(endpoints,
304 kDefaultBackoffPolicy, 304 kDefaultBackoffPolicy,
305 network_session_, 305 network_session_,
306 NULL,
306 &net_log_, 307 &net_log_,
307 &recorder_)); 308 &recorder_));
308 gcm_store_.reset( 309 gcm_store_.reset(
309 new GCMStoreImpl(gcm_store_path_, 310 new GCMStoreImpl(gcm_store_path_,
310 file_thread_.message_loop_proxy(), 311 file_thread_.message_loop_proxy(),
311 make_scoped_ptr<Encryptor>(new FakeEncryptor))); 312 make_scoped_ptr<Encryptor>(new FakeEncryptor)));
312 mcs_client_.reset(new MCSClient("probe", 313 mcs_client_.reset(new MCSClient("probe",
313 &clock_, 314 &clock_,
314 connection_factory_.get(), 315 connection_factory_.get(),
315 gcm_store_.get(), 316 gcm_store_.get(),
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
498 499
499 return 0; 500 return 0;
500 } 501 }
501 502
502 } // namespace 503 } // namespace
503 } // namespace gcm 504 } // namespace gcm
504 505
505 int main(int argc, char* argv[]) { 506 int main(int argc, char* argv[]) {
506 return gcm::MCSProbeMain(argc, argv); 507 return gcm::MCSProbeMain(argc, argv);
507 } 508 }
OLDNEW
« no previous file with comments | « google_apis/gcm/engine/connection_factory_impl_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698