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

Unified Diff: net/base/escape_unittest.cc

Issue 23619016: Switch the offset conversion routines from... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 3 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: net/base/escape_unittest.cc
===================================================================
--- net/base/escape_unittest.cc (revision 221015)
+++ net/base/escape_unittest.cc (working copy)
@@ -337,10 +337,12 @@
TEST(EscapeTest, AdjustOffset) {
const AdjustOffsetCase adjust_cases[] = {
- {"", 0, std::string::npos},
+ {"", 0, 0},
+ {"", 1, std::string::npos},
{"test", 0, 0},
{"test", 2, 2},
- {"test", 4, std::string::npos},
+ {"test", 4, 4},
+ {"test", 5, std::string::npos},
{"test", std::string::npos, std::string::npos},
{"%2dtest", 6, 4},
{"%2dtest", 2, std::string::npos},

Powered by Google App Engine
This is Rietveld 408576698