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..48154db0870e408dfd085d22e5c6a41c12f55bba 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(std::string())); |
+ |
+ // Test invalid base64. |
+ EXPECT_EQ(base::string16(), decryptor_proxy.Decrypt("Not! Valid! Base64!")); |
} |
// The following test verifies proper detection of authentication scheme in |