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

Side by Side Diff: chrome/browser/sync/sync_error_notifier_ash_unittest.cc

Issue 2533083002: [Sync] SyncEngine refactor part 1: interfaces. (Closed)
Patch Set: Rebase. Created 4 years 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/sync/sync_error_notifier_ash.h" 5 #include "chrome/browser/sync/sync_error_notifier_ash.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <memory> 9 #include <memory>
10 10
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 #define MAYBE_PassphraseNotification PassphraseNotification 185 #define MAYBE_PassphraseNotification PassphraseNotification
186 #endif 186 #endif
187 TEST_F(SyncErrorNotifierTest, MAYBE_PassphraseNotification) { 187 TEST_F(SyncErrorNotifierTest, MAYBE_PassphraseNotification) {
188 #if defined(OS_CHROMEOS) 188 #if defined(OS_CHROMEOS)
189 chromeos::ScopedUserManagerEnabler scoped_enabler( 189 chromeos::ScopedUserManagerEnabler scoped_enabler(
190 new chromeos::MockUserManager()); 190 new chromeos::MockUserManager());
191 #endif 191 #endif
192 ASSERT_FALSE(notification_ui_manager_->FindById( 192 ASSERT_FALSE(notification_ui_manager_->FindById(
193 kNotificationId, NotificationUIManager::GetProfileID(profile_))); 193 kNotificationId, NotificationUIManager::GetProfileID(profile_)));
194 194
195 syncer::SyncBackendHost::Status status; 195 syncer::SyncEngine::Status status;
196 EXPECT_CALL(*service_, QueryDetailedSyncStatus(_)) 196 EXPECT_CALL(*service_, QueryDetailedSyncStatus(_))
197 .WillRepeatedly(Return(false)); 197 .WillRepeatedly(Return(false));
198 198
199 EXPECT_CALL(*service_, IsPassphraseRequired()) 199 EXPECT_CALL(*service_, IsPassphraseRequired())
200 .WillRepeatedly(Return(true)); 200 .WillRepeatedly(Return(true));
201 EXPECT_CALL(*service_, IsPassphraseRequiredForDecryption()) 201 EXPECT_CALL(*service_, IsPassphraseRequiredForDecryption())
202 .WillRepeatedly(Return(true)); 202 .WillRepeatedly(Return(true));
203 { 203 {
204 SCOPED_TRACE("Expected a notification for passphrase error"); 204 SCOPED_TRACE("Expected a notification for passphrase error");
205 VerifySyncErrorNotifierResult(GoogleServiceAuthError::NONE, 205 VerifySyncErrorNotifierResult(GoogleServiceAuthError::NONE,
(...skipping 22 matching lines...) Expand all
228 SCOPED_TRACE("Not expecting notification since sync setup is incomplete"); 228 SCOPED_TRACE("Not expecting notification since sync setup is incomplete");
229 VerifySyncErrorNotifierResult( 229 VerifySyncErrorNotifierResult(
230 GoogleServiceAuthError::INVALID_GAIA_CREDENTIALS, 230 GoogleServiceAuthError::INVALID_GAIA_CREDENTIALS,
231 false /* not signed in */, 231 false /* not signed in */,
232 false /* no error */); 232 false /* no error */);
233 } 233 }
234 } 234 }
235 235
236 } // namespace test 236 } // namespace test
237 } // namespace ash 237 } // namespace ash
OLDNEW
« no previous file with comments | « chrome/browser/permissions/permission_uma_util_unittest.cc ('k') | chrome/browser/sync/sync_global_error_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698