Index: chrome/utility/importer/firefox_importer_unittest.cc |
diff --git a/chrome/utility/importer/firefox_importer_unittest.cc b/chrome/utility/importer/firefox_importer_unittest.cc |
index 0ad20e10a358abfc9abf5e90c0bce3636d15b3a2..3f0e86e8b1afe868a3fd1a49964e7057d6a0524d 100644 |
--- a/chrome/utility/importer/firefox_importer_unittest.cc |
+++ b/chrome/utility/importer/firefox_importer_unittest.cc |
@@ -45,6 +45,12 @@ TEST(FirefoxImporterTest, MAYBE_NSS(Firefox3NSS3Decryptor)) { |
EXPECT_EQ(base::WideToUTF16(L"\x4E2D"), |
decryptor_proxy.Decrypt("MDIEEPgAAAAAAAAAAAAAAAAAAAEwFAYIKoZIhvcNAwcECLW" |
"qqiccfQHWBAie74hxnULxlw==")); |
+ |
+ // Test empty string edge case. |
+ EXPECT_EQ(base::string16(), decryptor_proxy.Decrypt("")); |
Ilya Sherman
2014/08/06 01:29:16
nit: Prefer std::string() to "".
davidben
2014/08/06 17:47:59
Done.
|
+ |
+ // Test invalid base64. |
+ EXPECT_EQ(base::string16(), decryptor_proxy.Decrypt("Not! Valid! Base64!")); |
} |
// The following test verifies proper detection of authentication scheme in |