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

Unified Diff: sync/internal_api/js_sync_encryption_handler_observer_unittest.cc

Issue 10824410: [Sync] Refactor passphrase state handling (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 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
Index: sync/internal_api/js_sync_encryption_handler_observer_unittest.cc
diff --git a/sync/internal_api/js_sync_encryption_handler_observer_unittest.cc b/sync/internal_api/js_sync_encryption_handler_observer_unittest.cc
index 70ebab70f8b2d39cc2fbc35104b7ed60528cff3f..d42f0e591c49784db09e9b3b7462cb303d8b9372 100644
--- a/sync/internal_api/js_sync_encryption_handler_observer_unittest.cc
+++ b/sync/internal_api/js_sync_encryption_handler_observer_unittest.cc
@@ -154,5 +154,19 @@ TEST_F(JsSyncEncryptionHandlerObserverTest, OnCryptographerStateChanged) {
PumpLoop();
}
+TEST_F(JsSyncEncryptionHandlerObserverTest, OnPassphraseStateChanged) {
+ InSequence dummy;
+
+ DictionaryValue passphrase_state_details;
+ passphrase_state_details.SetString("passphraseState", "IMPLICIT_PASSPHRASE");
+ EXPECT_CALL(mock_js_event_handler_,
+ HandleJsEvent("onPassphraseStateChanged",
+ HasDetailsAsDictionary(passphrase_state_details)));
+
+ js_sync_encryption_handler_observer_.OnPassphraseStateChanged(
+ IMPLICIT_PASSPHRASE);
+ PumpLoop();
+}
+
} // namespace
} // namespace syncer
« no previous file with comments | « sync/internal_api/js_sync_encryption_handler_observer.cc ('k') | sync/internal_api/public/sync_encryption_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698