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

Side by Side Diff: extensions/browser/lazy_background_task_queue_unittest.cc

Issue 1662843002: Revert of Delete base/prefs and update callers to use components. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "extensions/browser/lazy_background_task_queue.h" 5 #include "extensions/browser/lazy_background_task_queue.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/prefs/testing_pref_service.h"
10 #include "components/keyed_service/content/browser_context_dependency_manager.h" 11 #include "components/keyed_service/content/browser_context_dependency_manager.h"
11 #include "components/pref_registry/testing_pref_service_syncable.h" 12 #include "components/pref_registry/testing_pref_service_syncable.h"
12 #include "components/prefs/testing_pref_service.h"
13 #include "components/user_prefs/user_prefs.h" 13 #include "components/user_prefs/user_prefs.h"
14 #include "content/public/browser/notification_service.h" 14 #include "content/public/browser/notification_service.h"
15 #include "content/public/test/test_browser_context.h" 15 #include "content/public/test/test_browser_context.h"
16 #include "extensions/browser/extension_registry.h" 16 #include "extensions/browser/extension_registry.h"
17 #include "extensions/browser/extension_registry_factory.h" 17 #include "extensions/browser/extension_registry_factory.h"
18 #include "extensions/browser/extensions_test.h" 18 #include "extensions/browser/extensions_test.h"
19 #include "extensions/browser/process_manager.h" 19 #include "extensions/browser/process_manager.h"
20 #include "extensions/browser/process_manager_factory.h" 20 #include "extensions/browser/process_manager_factory.h"
21 #include "extensions/browser/test_extensions_browser_client.h" 21 #include "extensions/browser/test_extensions_browser_client.h"
22 #include "extensions/common/extension.h" 22 #include "extensions/common/extension.h"
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 EXPECT_EQ(1u, queue.extensions_with_pending_tasks()); 210 EXPECT_EQ(1u, queue.extensions_with_pending_tasks());
211 211
212 // Processing tasks when there is one pending runs the task and removes the 212 // Processing tasks when there is one pending runs the task and removes the
213 // extension from the list of extensions with pending tasks. 213 // extension from the list of extensions with pending tasks.
214 queue.ProcessPendingTasks(NULL, browser_context(), extension.get()); 214 queue.ProcessPendingTasks(NULL, browser_context(), extension.get());
215 EXPECT_EQ(1, task_run_count()); 215 EXPECT_EQ(1, task_run_count());
216 EXPECT_EQ(0u, queue.extensions_with_pending_tasks()); 216 EXPECT_EQ(0u, queue.extensions_with_pending_tasks());
217 } 217 }
218 218
219 } // namespace extensions 219 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/browser/extension_prefs_factory.cc ('k') | extensions/shell/browser/shell_browser_main_parts.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698