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

Side by Side Diff: chrome/browser/component_updater/test/component_updater_service_unittest.cc

Issue 1003953008: Remove prerender cookie store, part 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@prerender-revert-cookie-store-3
Patch Set: rebase (just in case since this is so huge) Created 5 years, 9 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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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 "chrome/browser/component_updater/test/component_updater_service_unitte st.h" 5 #include "chrome/browser/component_updater/test/component_updater_service_unitte st.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/files/file_util.h" 9 #include "base/files/file_util.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 1196 matching lines...) Expand 10 before | Expand all | Expand 10 after
1207 }; 1207 };
1208 1208
1209 content::ResourceThrottle* RequestTestResourceThrottle( 1209 content::ResourceThrottle* RequestTestResourceThrottle(
1210 ComponentUpdateService* cus, 1210 ComponentUpdateService* cus,
1211 TestResourceController* controller, 1211 TestResourceController* controller,
1212 const char* crx_id) { 1212 const char* crx_id) {
1213 net::TestURLRequestContext context; 1213 net::TestURLRequestContext context;
1214 scoped_ptr<net::URLRequest> url_request(context.CreateRequest( 1214 scoped_ptr<net::URLRequest> url_request(context.CreateRequest(
1215 GURL("http://foo.example.com/thing.bin"), 1215 GURL("http://foo.example.com/thing.bin"),
1216 net::DEFAULT_PRIORITY, 1216 net::DEFAULT_PRIORITY,
1217 NULL,
1218 NULL)); 1217 NULL));
1219 1218
1220 content::ResourceThrottle* rt = GetOnDemandResourceThrottle(cus, crx_id); 1219 content::ResourceThrottle* rt = GetOnDemandResourceThrottle(cus, crx_id);
1221 rt->set_controller_for_testing(controller); 1220 rt->set_controller_for_testing(controller);
1222 controller->SetThrottle(rt); 1221 controller->SetThrottle(rt);
1223 return rt; 1222 return rt;
1224 } 1223 }
1225 1224
1226 void RequestAndDeleteResourceThrottle(ComponentUpdateService* cus, 1225 void RequestAndDeleteResourceThrottle(ComponentUpdateService* cus,
1227 const char* crx_id) { 1226 const char* crx_id) {
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
1515 component_updater()->RemoveObserver(&observer2); 1514 component_updater()->RemoveObserver(&observer2);
1516 1515
1517 test_configurator()->SetLoopCount(1); 1516 test_configurator()->SetLoopCount(1);
1518 component_updater()->Start(); 1517 component_updater()->Start();
1519 RunThreads(); 1518 RunThreads();
1520 1519
1521 component_updater()->Stop(); 1520 component_updater()->Stop();
1522 } 1521 }
1523 1522
1524 } // namespace component_updater 1523 } // namespace component_updater
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698