| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 <map> | 5 #include <map> |
| 6 | 6 |
| 7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/stl_util-inl.h" | 9 #include "base/stl_util-inl.h" |
| 10 #include "base/string_number_conversions.h" | 10 #include "base/string_number_conversions.h" |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 virtual void CheckForUpdatesSoon() { | 130 virtual void CheckForUpdatesSoon() { |
| 131 FAIL(); | 131 FAIL(); |
| 132 } | 132 } |
| 133 | 133 |
| 134 virtual PendingExtensionManager* pending_extension_manager() { | 134 virtual PendingExtensionManager* pending_extension_manager() { |
| 135 ADD_FAILURE() << "Subclass should override this if it will " | 135 ADD_FAILURE() << "Subclass should override this if it will " |
| 136 << "be accessed by a test."; | 136 << "be accessed by a test."; |
| 137 return &pending_extension_manager_; | 137 return &pending_extension_manager_; |
| 138 } | 138 } |
| 139 | 139 |
| 140 virtual void ProcessSyncData(const ExtensionSyncData& extension_sync_data) { |
| 141 FAIL(); |
| 142 } |
| 143 |
| 140 Profile* profile() { return &profile_; } | 144 Profile* profile() { return &profile_; } |
| 141 | 145 |
| 142 ExtensionPrefs* extension_prefs() { return prefs_.prefs(); } | 146 ExtensionPrefs* extension_prefs() { return prefs_.prefs(); } |
| 143 | 147 |
| 144 PrefService* pref_service() { return prefs_.pref_service(); } | 148 PrefService* pref_service() { return prefs_.pref_service(); } |
| 145 | 149 |
| 146 // Creates test extensions and inserts them into list. The name and | 150 // Creates test extensions and inserts them into list. The name and |
| 147 // version are all based on their index. If |update_url| is non-null, it | 151 // version are all based on their index. If |update_url| is non-null, it |
| 148 // will be used as the update_url for each extension. | 152 // will be used as the update_url for each extension. |
| 149 // The |id| is used to distinguish extension names and make sure that | 153 // The |id| is used to distinguish extension names and make sure that |
| (...skipping 1079 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1229 | 1233 |
| 1230 // TODO(asargent) - (http://crbug.com/12780) add tests for: | 1234 // TODO(asargent) - (http://crbug.com/12780) add tests for: |
| 1231 // -prodversionmin (shouldn't update if browser version too old) | 1235 // -prodversionmin (shouldn't update if browser version too old) |
| 1232 // -manifests & updates arriving out of order / interleaved | 1236 // -manifests & updates arriving out of order / interleaved |
| 1233 // -malformed update url (empty, file://, has query, has a # fragment, etc.) | 1237 // -malformed update url (empty, file://, has query, has a # fragment, etc.) |
| 1234 // -An extension gets uninstalled while updates are in progress (so it doesn't | 1238 // -An extension gets uninstalled while updates are in progress (so it doesn't |
| 1235 // "come back from the dead") | 1239 // "come back from the dead") |
| 1236 // -An extension gets manually updated to v3 while we're downloading v2 (ie | 1240 // -An extension gets manually updated to v3 while we're downloading v2 (ie |
| 1237 // you don't get downgraded accidentally) | 1241 // you don't get downgraded accidentally) |
| 1238 // -An update manifest mentions multiple updates | 1242 // -An update manifest mentions multiple updates |
| OLD | NEW |