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

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: Modify target Created 4 years, 4 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
« no previous file with comments | « chrome/browser/ui/app_list/arc/arc_app_test.h ('k') | chrome/browser/ui/app_list/arc/arc_app_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 cc551c697ec9292e444db0aab80d1a1eb9d17bf2..01aad319cca8663f8b6e53a4d97eef11382a1dbc 100644
--- a/chrome/browser/ui/app_list/arc/arc_app_test.cc
+++ b/chrome/browser/ui/app_list/arc/arc_app_test.cc
@@ -122,16 +122,22 @@ void ArcAppTest::SetUp(Profile* profile) {
// Check initial conditions.
EXPECT_EQ(bridge_service_.get(), arc::ArcBridgeService::Get());
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::StopArcInstance() {
+ bridge_service_->app()->SetInstance(nullptr);
+}
+
+void ArcAppTest::RestartArcInstance() {
+ bridge_service_->app()->SetInstance(nullptr);
+ 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"));
« no previous file with comments | « chrome/browser/ui/app_list/arc/arc_app_test.h ('k') | chrome/browser/ui/app_list/arc/arc_app_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698