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

Side by Side Diff: chrome/browser/extensions/external_provider_impl_chromeos_unittest.cc

Issue 2388163002: [Sync] Move //components/sync to the syncer namespace, take 2. (Closed)
Patch Set: Rebase. 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 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 "chrome/browser/extensions/external_provider_impl.h" 5 #include "chrome/browser/extensions/external_provider_impl.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 SigninManagerFactory::GetForProfile(profile_.get()); 160 SigninManagerFactory::GetForProfile(profile_.get());
161 signin->SetAuthenticatedAccountInfo("gaia-id-test_user@gmail.com", 161 signin->SetAuthenticatedAccountInfo("gaia-id-test_user@gmail.com",
162 "test_user@gmail.com"); 162 "test_user@gmail.com");
163 ProfileOAuth2TokenServiceFactory::GetForProfile(profile_.get()) 163 ProfileOAuth2TokenServiceFactory::GetForProfile(profile_.get())
164 ->UpdateCredentials("test_user@gmail.com", "oauth2_login_token"); 164 ->UpdateCredentials("test_user@gmail.com", "oauth2_login_token");
165 165
166 // App sync will wait for priority sync to complete. 166 // App sync will wait for priority sync to complete.
167 service_->CheckForExternalUpdates(); 167 service_->CheckForExternalUpdates();
168 168
169 // Sync is dsabled by policy. 169 // Sync is dsabled by policy.
170 profile_->GetPrefs()->SetBoolean(sync_driver::prefs::kSyncManaged, true); 170 profile_->GetPrefs()->SetBoolean(syncer::prefs::kSyncManaged, true);
171 171
172 content::WindowedNotificationObserver( 172 content::WindowedNotificationObserver(
173 extensions::NOTIFICATION_CRX_INSTALLER_DONE, 173 extensions::NOTIFICATION_CRX_INSTALLER_DONE,
174 content::NotificationService::AllSources()).Wait(); 174 content::NotificationService::AllSources()).Wait();
175 175
176 EXPECT_TRUE(service_->GetInstalledExtension(kStandaloneAppId)); 176 EXPECT_TRUE(service_->GetInstalledExtension(kStandaloneAppId));
177 177
178 TestingBrowserProcess::GetGlobal()->SetProfileManager(NULL); 178 TestingBrowserProcess::GetGlobal()->SetProfileManager(NULL);
179 } 179 }
180 180
(...skipping 22 matching lines...) Expand all
203 new syncer::SyncErrorFactoryMock())); 203 new syncer::SyncErrorFactoryMock()));
204 204
205 content::WindowedNotificationObserver( 205 content::WindowedNotificationObserver(
206 extensions::NOTIFICATION_CRX_INSTALLER_DONE, 206 extensions::NOTIFICATION_CRX_INSTALLER_DONE,
207 content::NotificationService::AllSources()).Wait(); 207 content::NotificationService::AllSources()).Wait();
208 208
209 EXPECT_TRUE(service_->GetInstalledExtension(kStandaloneAppId)); 209 EXPECT_TRUE(service_->GetInstalledExtension(kStandaloneAppId));
210 } 210 }
211 211
212 } // namespace extensions 212 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698