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

Side by Side Diff: net/http/http_server_properties_manager_unittest.cc

Issue 681713002: Update from chromium https://crrev.com/301315 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 | « net/http/http_server_properties_manager.cc ('k') | net/http/http_stream_factory_impl.cc » ('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 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 "net/http/http_server_properties_manager.h" 5 #include "net/http/http_server_properties_manager.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/message_loop/message_loop.h" 8 #include "base/message_loop/message_loop.h"
9 #include "base/prefs/pref_registry_simple.h" 9 #include "base/prefs/pref_registry_simple.h"
10 #include "base/prefs/testing_pref_service.h" 10 #include "base/prefs/testing_pref_service.h"
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 base::TimeDelta()); 60 base::TimeDelta());
61 } 61 }
62 62
63 void UpdatePrefsFromCacheOnNetworkThreadConcrete( 63 void UpdatePrefsFromCacheOnNetworkThreadConcrete(
64 const base::Closure& callback) { 64 const base::Closure& callback) {
65 HttpServerPropertiesManager::UpdatePrefsFromCacheOnNetworkThread(callback); 65 HttpServerPropertiesManager::UpdatePrefsFromCacheOnNetworkThread(callback);
66 } 66 }
67 67
68 MOCK_METHOD0(UpdateCacheFromPrefsOnPrefThread, void()); 68 MOCK_METHOD0(UpdateCacheFromPrefsOnPrefThread, void());
69 MOCK_METHOD1(UpdatePrefsFromCacheOnNetworkThread, void(const base::Closure&)); 69 MOCK_METHOD1(UpdatePrefsFromCacheOnNetworkThread, void(const base::Closure&));
70 MOCK_METHOD6(UpdateCacheFromPrefsOnNetworkThread, 70 MOCK_METHOD5(UpdateCacheFromPrefsOnNetworkThread,
71 void(std::vector<std::string>* spdy_servers, 71 void(std::vector<std::string>* spdy_servers,
72 net::SpdySettingsMap* spdy_settings_map, 72 net::SpdySettingsMap* spdy_settings_map,
73 net::AlternateProtocolMap* alternate_protocol_map, 73 net::AlternateProtocolMap* alternate_protocol_map,
74 net::AlternateProtocolExperiment experiment,
75 net::SupportsQuicMap* supports_quic_map, 74 net::SupportsQuicMap* supports_quic_map,
76 bool detected_corrupted_prefs)); 75 bool detected_corrupted_prefs));
77 MOCK_METHOD4(UpdatePrefsOnPref, 76 MOCK_METHOD4(UpdatePrefsOnPref,
78 void(base::ListValue* spdy_server_list, 77 void(base::ListValue* spdy_server_list,
79 net::SpdySettingsMap* spdy_settings_map, 78 net::SpdySettingsMap* spdy_settings_map,
80 net::AlternateProtocolMap* alternate_protocol_map, 79 net::AlternateProtocolMap* alternate_protocol_map,
81 net::SupportsQuicMap* supports_quic_map)); 80 net::SupportsQuicMap* supports_quic_map));
82 81
83 private: 82 private:
84 DISALLOW_COPY_AND_ASSIGN(TestingHttpServerPropertiesManager); 83 DISALLOW_COPY_AND_ASSIGN(TestingHttpServerPropertiesManager);
(...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after
529 // Run the task after shutdown, but before deletion. 528 // Run the task after shutdown, but before deletion.
530 base::RunLoop().RunUntilIdle(); 529 base::RunLoop().RunUntilIdle();
531 Mock::VerifyAndClearExpectations(http_server_props_manager_.get()); 530 Mock::VerifyAndClearExpectations(http_server_props_manager_.get());
532 http_server_props_manager_.reset(); 531 http_server_props_manager_.reset();
533 base::RunLoop().RunUntilIdle(); 532 base::RunLoop().RunUntilIdle();
534 } 533 }
535 534
536 } // namespace 535 } // namespace
537 536
538 } // namespace net 537 } // namespace net
OLDNEW
« no previous file with comments | « net/http/http_server_properties_manager.cc ('k') | net/http/http_stream_factory_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698