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

Unified Diff: chrome/browser/ui/app_list/arc/arc_app_test.cc

Issue 2106663004: arc: Initial implemetation of Chrome sync for Arc packages. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Issue Fixed. Created 4 years, 5 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/ui/app_list/arc/arc_app_test.cc
diff --git a/chrome/browser/ui/app_list/arc/arc_app_test.cc b/chrome/browser/ui/app_list/arc/arc_app_test.cc
index 313ffd93c522986fd1d242c8435e1254ac991684..7905541c54bb7d9a2c73694940d1d9fb9118e028 100644
--- a/chrome/browser/ui/app_list/arc/arc_app_test.cc
+++ b/chrome/browser/ui/app_list/arc/arc_app_test.cc
@@ -121,18 +121,24 @@ void ArcAppTest::SetUp(Profile* profile) {
// Check initial conditions.
EXPECT_EQ(bridge_service_.get(), arc::ArcBridgeService::Get());
- EXPECT_TRUE(!arc::ArcBridgeService::Get()->available());
+ EXPECT_FALSE(arc::ArcBridgeService::Get()->available());
EXPECT_FALSE(arc::ArcBridgeService::Get()->ready());
-
- // At this point we should have ArcAppListPrefs as observer of service.
- EXPECT_TRUE(bridge_service_->HasObserver(arc_app_list_pref_));
- bridge_service()->SetReady();
}
void ArcAppTest::TearDown() {
auth_service_.reset();
}
+void ArcAppTest::SetBridgeServiceStopped() {
Luis Héctor Chávez 2016/07/25 20:50:54 nit: rename to StopArcInstance.
lgcheng 2016/07/25 21:10:11 Done.
+ bridge_service_->app()->CloseChannel();
+}
+
+void ArcAppTest::ResetBridgeServiceReady() {
Luis Héctor Chávez 2016/07/25 20:50:54 nit: rename to RestartArcInstance
lgcheng 2016/07/25 21:10:11 Done.
+ bridge_service_->app()->CloseChannel();
+ app_instance_.reset(new arc::FakeAppInstance(arc_app_list_pref_));
+ bridge_service_->app()->SetInstance(app_instance_.get());
+}
+
const user_manager::User* ArcAppTest::CreateUserAndLogin() {
const AccountId account_id(AccountId::FromUserEmailGaiaId(
profile_->GetProfileUserName(), "1234567890"));

Powered by Google App Engine
This is Rietveld 408576698