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

Unified Diff: components/sync/core_impl/js_sync_encryption_handler_observer_unittest.cc

Issue 2279713002: Make PassphraseType a "enum class" instead of "enum". (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix java 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
Index: components/sync/core_impl/js_sync_encryption_handler_observer_unittest.cc
diff --git a/components/sync/core_impl/js_sync_encryption_handler_observer_unittest.cc b/components/sync/core_impl/js_sync_encryption_handler_observer_unittest.cc
index 69737eb375796775a48f5967fce3d2a5a7cbe431..49a3a1428da8fd9a2b5612a3c3a863899496be34 100644
--- a/components/sync/core_impl/js_sync_encryption_handler_observer_unittest.cc
+++ b/components/sync/core_impl/js_sync_encryption_handler_observer_unittest.cc
@@ -149,14 +149,15 @@ TEST_F(JsSyncEncryptionHandlerObserverTest, OnPassphraseTypeChanged) {
InSequence dummy;
base::DictionaryValue passphrase_type_details;
- passphrase_type_details.SetString("passphraseType", "IMPLICIT_PASSPHRASE");
+ passphrase_type_details.SetString("passphraseType",
+ "PassphraseType::IMPLICIT_PASSPHRASE");
passphrase_type_details.SetInteger("explicitPassphraseTime", 10);
EXPECT_CALL(mock_js_event_handler_,
HandleJsEvent("onPassphraseTypeChanged",
HasDetailsAsDictionary(passphrase_type_details)));
js_sync_encryption_handler_observer_.OnPassphraseTypeChanged(
- IMPLICIT_PASSPHRASE, ProtoTimeToTime(10));
+ PassphraseType::IMPLICIT_PASSPHRASE, ProtoTimeToTime(10));
PumpLoop();
}
« no previous file with comments | « components/sync/core/sync_encryption_handler.h ('k') | components/sync/core_impl/sync_encryption_handler_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698