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

Side by Side Diff: chrome/browser/signin/easy_unlock_app_manager_unittest.cc

Issue 1129063011: Extract LazyBackgroundTaskQueue from ExtensionSystem. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased from master Created 5 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/signin/easy_unlock_app_manager.h" 5 #include "chrome/browser/signin/easy_unlock_app_manager.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 292
293 private: 293 private:
294 // Initializes test extension system. 294 // Initializes test extension system.
295 extensions::ExtensionSystem* SetUpExtensionSystem() { 295 extensions::ExtensionSystem* SetUpExtensionSystem() {
296 extensions::TestExtensionSystem* test_extension_system = 296 extensions::TestExtensionSystem* test_extension_system =
297 static_cast<extensions::TestExtensionSystem*>( 297 static_cast<extensions::TestExtensionSystem*>(
298 extensions::ExtensionSystem::Get(&profile_)); 298 extensions::ExtensionSystem::Get(&profile_));
299 extension_service_ = test_extension_system->CreateExtensionService( 299 extension_service_ = test_extension_system->CreateExtensionService(
300 &command_line_, base::FilePath() /* install_directory */, 300 &command_line_, base::FilePath() /* install_directory */,
301 false /* autoupdate_enabled */); 301 false /* autoupdate_enabled */);
302 test_extension_system->CreateLazyBackgroundTaskQueue();
303 302
304 extensions::ProcessManagerFactory::GetInstance()->SetTestingFactory( 303 extensions::ProcessManagerFactory::GetInstance()->SetTestingFactory(
305 &profile_, &CreateTestProcessManager); 304 &profile_, &CreateTestProcessManager);
306 305
307 scoped_ptr<extensions::EventRouter> event_router(new TestEventRouter( 306 scoped_ptr<extensions::EventRouter> event_router(new TestEventRouter(
308 &profile_, extensions::ExtensionPrefs::Get(&profile_), 307 &profile_, extensions::ExtensionPrefs::Get(&profile_),
309 &event_consumer_)); 308 &event_consumer_));
310 event_router_ = event_router.get(); 309 event_router_ = event_router.get();
311 test_extension_system->SetEventRouter(event_router.Pass()); 310 test_extension_system->SetEventRouter(event_router.Pass());
312 311
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
611 extension_misc::kEasyUnlockAppId); 610 extension_misc::kEasyUnlockAppId);
612 app_manager_->DisableAppIfLoaded(); 611 app_manager_->DisableAppIfLoaded();
613 612
614 ASSERT_EQ(0u, event_consumer_.auth_attempted_count()); 613 ASSERT_EQ(0u, event_consumer_.auth_attempted_count());
615 614
616 EXPECT_FALSE(app_manager_->SendAuthAttemptEvent()); 615 EXPECT_FALSE(app_manager_->SendAuthAttemptEvent());
617 EXPECT_EQ(0u, event_consumer_.auth_attempted_count()); 616 EXPECT_EQ(0u, event_consumer_.auth_attempted_count());
618 } 617 }
619 618
620 } // namespace 619 } // namespace
OLDNEW
« no previous file with comments | « chrome/browser/extensions/test_extension_system.cc ('k') | extensions/browser/api/runtime/runtime_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698