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

Unified Diff: chrome/browser/chromeos/arc/arc_auth_service_browsertest.cc

Issue 2436763004: More graceful shutdown for ArcSession. (Closed)
Patch Set: Add StopArcInstance Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/arc/arc_auth_service_browsertest.cc
diff --git a/chrome/browser/chromeos/arc/arc_auth_service_browsertest.cc b/chrome/browser/chromeos/arc/arc_auth_service_browsertest.cc
index b8a19fcbc284eba6394201545177d6248727b04a..9ac9f84ab430bae7c045ad4c8604507e744b5200 100644
--- a/chrome/browser/chromeos/arc/arc_auth_service_browsertest.cc
+++ b/chrome/browser/chromeos/arc/arc_auth_service_browsertest.cc
@@ -139,7 +139,8 @@ class ArcAuthServiceTest : public InProcessBrowserTest {
fake_session_manager_client));
// Mock out ARC bridge.
- auto service = base::MakeUnique<ArcBridgeServiceImpl>();
+ // Here inject FakeArcSession so blocking task runner is not needed.
+ auto service = base::MakeUnique<ArcBridgeServiceImpl>(nullptr);
service->SetArcSessionFactoryForTesting(base::Bind(FakeArcSession::Create));
ArcServiceManager::SetArcBridgeServiceForTesting(std::move(service));
}
« no previous file with comments | « chrome/browser/chromeos/arc/arc_auth_service.cc ('k') | chrome/browser/chromeos/arc/arc_service_launcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698