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

Side by Side Diff: chrome/browser/extensions/test_extension_service.cc

Issue 9718028: Allow autoupdate to update disabled extensions. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Synced Created 8 years, 8 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 (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 "chrome/browser/extensions/crx_installer.h" 5 #include "chrome/browser/extensions/crx_installer.h"
6 #include "chrome/browser/extensions/extension_sync_data.h" 6 #include "chrome/browser/extensions/extension_sync_data.h"
7 #include "chrome/browser/extensions/test_extension_service.h" 7 #include "chrome/browser/extensions/test_extension_service.h"
8 #include "testing/gtest/include/gtest/gtest.h" 8 #include "testing/gtest/include/gtest/gtest.h"
9 9
10 TestExtensionService::~TestExtensionService() {} 10 TestExtensionService::~TestExtensionService() {}
11 11
12 const ExtensionSet* TestExtensionService::extensions() const { 12 const ExtensionSet* TestExtensionService::extensions() const {
13 ADD_FAILURE(); 13 ADD_FAILURE();
14 return NULL; 14 return NULL;
15 } 15 }
16 16
17 const ExtensionSet* TestExtensionService::disabled_extensions() const {
18 ADD_FAILURE();
19 return NULL;
20 }
21
17 PendingExtensionManager* TestExtensionService::pending_extension_manager() { 22 PendingExtensionManager* TestExtensionService::pending_extension_manager() {
18 ADD_FAILURE(); 23 ADD_FAILURE();
19 return NULL; 24 return NULL;
20 } 25 }
21 26
22 bool TestExtensionService::UpdateExtension( 27 bool TestExtensionService::UpdateExtension(
23 const std::string& id, 28 const std::string& id,
24 const FilePath& path, 29 const FilePath& path,
25 const GURL& download_url, 30 const GURL& download_url,
26 CrxInstaller** out_crx_installer) { 31 CrxInstaller** out_crx_installer) {
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 void TestExtensionService::UnloadExtension( 108 void TestExtensionService::UnloadExtension(
104 const std::string& extension_id, 109 const std::string& extension_id,
105 extension_misc::UnloadedExtensionReason reason) { 110 extension_misc::UnloadedExtensionReason reason) {
106 ADD_FAILURE(); 111 ADD_FAILURE();
107 } 112 }
108 113
109 void TestExtensionService::SyncExtensionChangeIfNeeded( 114 void TestExtensionService::SyncExtensionChangeIfNeeded(
110 const Extension& extension) { 115 const Extension& extension) {
111 ADD_FAILURE(); 116 ADD_FAILURE();
112 } 117 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/test_extension_service.h ('k') | chrome/browser/extensions/updater/extension_updater.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698