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

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

Issue 14757022: Add a non-blocking "OneShotEvent" class (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: dcronin's comments; ExtensionSystem::ready; and WeakPtr support Created 7 years, 7 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 | 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 "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 "sync/api/sync_error_factory.h" 8 #include "sync/api/sync_error_factory.h"
9 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
10 10
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 return syncer::SyncDataList(); 99 return syncer::SyncDataList();
100 } 100 }
101 101
102 syncer::SyncError TestExtensionService::ProcessSyncChanges( 102 syncer::SyncError TestExtensionService::ProcessSyncChanges(
103 const tracked_objects::Location& from_here, 103 const tracked_objects::Location& from_here,
104 const syncer::SyncChangeList& change_list) { 104 const syncer::SyncChangeList& change_list) {
105 ADD_FAILURE(); 105 ADD_FAILURE();
106 return syncer::SyncError(); 106 return syncer::SyncError();
107 } 107 }
108 108
109 bool TestExtensionService::is_ready() {
110 ADD_FAILURE();
111 return false;
112 }
113
114 base::SequencedTaskRunner* TestExtensionService::GetFileTaskRunner() { 109 base::SequencedTaskRunner* TestExtensionService::GetFileTaskRunner() {
115 ADD_FAILURE(); 110 ADD_FAILURE();
116 return NULL; 111 return NULL;
117 } 112 }
118 113
119 void TestExtensionService::AddExtension(const Extension* extension) { 114 void TestExtensionService::AddExtension(const Extension* extension) {
120 ADD_FAILURE(); 115 ADD_FAILURE();
121 } 116 }
122 117
123 void TestExtensionService::AddComponentExtension(const Extension* extension) { 118 void TestExtensionService::AddComponentExtension(const Extension* extension) {
124 ADD_FAILURE(); 119 ADD_FAILURE();
125 } 120 }
126 121
127 void TestExtensionService::UnloadExtension( 122 void TestExtensionService::UnloadExtension(
128 const std::string& extension_id, 123 const std::string& extension_id,
129 extension_misc::UnloadedExtensionReason reason) { 124 extension_misc::UnloadedExtensionReason reason) {
130 ADD_FAILURE(); 125 ADD_FAILURE();
131 } 126 }
132 127
133 void TestExtensionService::SyncExtensionChangeIfNeeded( 128 void TestExtensionService::SyncExtensionChangeIfNeeded(
134 const Extension& extension) { 129 const Extension& extension) {
135 ADD_FAILURE(); 130 ADD_FAILURE();
136 } 131 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698