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

Side by Side Diff: chrome/browser/extensions/updater/extension_updater_unittest.cc

Issue 11570009: Split PrefService into PrefService, PrefServiceSimple and PrefServiceSyncable. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments. Created 8 years 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 <list> 5 #include <list>
6 #include <map> 6 #include <map>
7 #include <set> 7 #include <set>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 } 215 }
216 216
217 Profile* profile() { return &profile_; } 217 Profile* profile() { return &profile_; }
218 218
219 net::URLRequestContextGetter* request_context() { 219 net::URLRequestContextGetter* request_context() {
220 return profile_.GetRequestContext(); 220 return profile_.GetRequestContext();
221 } 221 }
222 222
223 ExtensionPrefs* extension_prefs() { return prefs_->prefs(); } 223 ExtensionPrefs* extension_prefs() { return prefs_->prefs(); }
224 224
225 PrefService* pref_service() { return prefs_->pref_service(); } 225 PrefServiceSyncable* pref_service() { return prefs_->pref_service(); }
226 226
227 Blacklist* blacklist() { return &blacklist_; } 227 Blacklist* blacklist() { return &blacklist_; }
228 228
229 // Creates test extensions and inserts them into list. The name and 229 // Creates test extensions and inserts them into list. The name and
230 // version are all based on their index. If |update_url| is non-null, it 230 // version are all based on their index. If |update_url| is non-null, it
231 // will be used as the update_url for each extension. 231 // will be used as the update_url for each extension.
232 // The |id| is used to distinguish extension names and make sure that 232 // The |id| is used to distinguish extension names and make sure that
233 // no two extensions share the same name. 233 // no two extensions share the same name.
234 void CreateTestExtensions(int id, int count, ExtensionList *list, 234 void CreateTestExtensions(int id, int count, ExtensionList *list,
235 const std::string* update_url, 235 const std::string* update_url,
(...skipping 1452 matching lines...) Expand 10 before | Expand all | Expand 10 after
1688 // -prodversionmin (shouldn't update if browser version too old) 1688 // -prodversionmin (shouldn't update if browser version too old)
1689 // -manifests & updates arriving out of order / interleaved 1689 // -manifests & updates arriving out of order / interleaved
1690 // -malformed update url (empty, file://, has query, has a # fragment, etc.) 1690 // -malformed update url (empty, file://, has query, has a # fragment, etc.)
1691 // -An extension gets uninstalled while updates are in progress (so it doesn't 1691 // -An extension gets uninstalled while updates are in progress (so it doesn't
1692 // "come back from the dead") 1692 // "come back from the dead")
1693 // -An extension gets manually updated to v3 while we're downloading v2 (ie 1693 // -An extension gets manually updated to v3 while we're downloading v2 (ie
1694 // you don't get downgraded accidentally) 1694 // you don't get downgraded accidentally)
1695 // -An update manifest mentions multiple updates 1695 // -An update manifest mentions multiple updates
1696 1696
1697 } // namespace extensions 1697 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698