Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: test/compiled/RegExp.cpp

Issue 29721753: Issue 6180 - use ABP_TEXT everywhere in order to let String be a UTF-8 string (Closed) Base URL: https://github.com/adblockplus/adblockpluscore.git@adb2678354813ce5b6de095072954c5a784a7bc4
Patch Set: rebase Created March 15, 2018, 1:53 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/compiled/Filter.cpp ('k') | test/compiled/String.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/compiled/RegExp.cpp
diff --git a/test/compiled/RegExp.cpp b/test/compiled/RegExp.cpp
index 0ac09de5dea0954c3877cd053ddce1f6d5f5b20c..380e9d8be94f1045601e9e9e2c827e6f86f96729 100644
--- a/test/compiled/RegExp.cpp
+++ b/test/compiled/RegExp.cpp
@@ -22,13 +22,13 @@ ABP_NS_USING
TEST(TestRegexp, RegExp)
{
- auto id = GenerateRegExp(u"[0-9]*"_str, false);
+ auto id = GenerateRegExp(ABP_TEXT("[0-9]*"_str), false);
EXPECT_EQ(0u, id);
- EXPECT_FALSE(TestRegExp(id, u"abcd"_str));
- EXPECT_TRUE(TestRegExp(id, u"1234"_str));
+ EXPECT_FALSE(TestRegExp(id, ABP_TEXT("abcd"_str)));
+ EXPECT_TRUE(TestRegExp(id, ABP_TEXT("1234"_str)));
DeleteRegExp(id);
// RegExp has been delete: all is false
- EXPECT_FALSE(TestRegExp(id, u"abcd"_str));
- EXPECT_FALSE(TestRegExp(id, u"1234"_str));
+ EXPECT_FALSE(TestRegExp(id, ABP_TEXT("abcd"_str)));
+ EXPECT_FALSE(TestRegExp(id, ABP_TEXT("1234"_str)));
}
« no previous file with comments | « test/compiled/Filter.cpp ('k') | test/compiled/String.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld