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

Unified Diff: components/subresource_filter/core/common/fuzzy_pattern_matching_unittest.cc

Issue 2153743002: Save failure function to FlatBuffer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add newline. Created 4 years, 5 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: components/subresource_filter/core/common/fuzzy_pattern_matching_unittest.cc
diff --git a/components/subresource_filter/core/common/fuzzy_pattern_matching_unittest.cc b/components/subresource_filter/core/common/fuzzy_pattern_matching_unittest.cc
index 8c7a744ed8cfbad17808837ba1853bc1a42c62be..b55ffd135241fc258e9623dbaefb90331ff8968b 100644
--- a/components/subresource_filter/core/common/fuzzy_pattern_matching_unittest.cc
+++ b/components/subresource_filter/core/common/fuzzy_pattern_matching_unittest.cc
@@ -93,7 +93,7 @@ TEST(FuzzyPatternMatchingTest, AllOccurrences) {
std::vector<size_t> failure;
BuildFailureFunctionFuzzy(test_case.subpattern, &failure);
- const auto& occurrences = AllOccurrencesFuzzy(
+ const auto& occurrences = AllOccurrencesFuzzy<size_t>(
test_case.text, test_case.subpattern, failure.data());
std::vector<size_t> matches(occurrences.begin(), occurrences.end());
EXPECT_EQ(test_case.expected_matches, matches);

Powered by Google App Engine
This is Rietveld 408576698