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

Unified Diff: content/renderer/android/email_detector_unittest.cc

Issue 1541093002: Email Regular Expression update for exclusion of invalid domain parts (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Patch Set 2 Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/renderer/android/email_detector.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/android/email_detector_unittest.cc
diff --git a/content/renderer/android/email_detector_unittest.cc b/content/renderer/android/email_detector_unittest.cc
index c695617c7117a9eee4aa9219f788732ee80b8782..1daf54d7974aa02b29eeb9b426fafbaf79407b30 100644
--- a/content/renderer/android/email_detector_unittest.cc
+++ b/content/renderer/android/email_detector_unittest.cc
@@ -48,6 +48,8 @@ TEST_F(EmailDetectorTest, FindEmail) {
FindAndCheckEmail("@", "");
FindAndCheckEmail("Just bob @google.com", "");
FindAndCheckEmail("Why not call larry@google and ask him.", "");
+ FindAndCheckEmail("Lets test invalid invalid@email..com address", "");
+ FindAndCheckEmail("Invalid dots are bad invalid@.email.com address", "");
}
} // namespace content
« no previous file with comments | « content/renderer/android/email_detector.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698