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

Unified Diff: components/query_parser/query_parser_unittest.cc

Issue 2463683002: Remove stl_util's deletion function use from components/query_parser/. (Closed)
Patch Set: include Created 4 years, 2 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
« no previous file with comments | « components/query_parser/query_parser.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/query_parser/query_parser_unittest.cc
diff --git a/components/query_parser/query_parser_unittest.cc b/components/query_parser/query_parser_unittest.cc
index c99c639b96447493d73b915cd04240f6836f2af0..e99bf5a1101b92949fbcacacc779e61accbabbd7 100644
--- a/components/query_parser/query_parser_unittest.cc
+++ b/components/query_parser/query_parser_unittest.cc
@@ -5,7 +5,6 @@
#include <stddef.h>
#include "base/macros.h"
-#include "base/memory/scoped_vector.h"
#include "base/strings/utf_string_conversions.h"
#include "components/query_parser/query_parser.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -123,15 +122,13 @@ TEST_F(QueryParserTest, ParseQueryNodesAndMatch) {
};
for (size_t i = 0; i < arraysize(data); ++i) {
QueryParser parser;
- ScopedVector<QueryNode> query_nodes;
+ query_parser::QueryNodeVector query_nodes;
parser.ParseQueryNodes(base::UTF8ToUTF16(data[i].query),
- MatchingAlgorithm::DEFAULT,
- &query_nodes.get());
+ MatchingAlgorithm::DEFAULT, &query_nodes);
Snippet::MatchPositions match_positions;
ASSERT_EQ(data[i].matches,
parser.DoesQueryMatch(base::UTF8ToUTF16(data[i].text),
- query_nodes.get(),
- &match_positions));
+ query_nodes, &match_positions));
size_t offset = 0;
if (data[i].m1_start != 0 || data[i].m1_end != 0) {
ASSERT_TRUE(match_positions.size() >= 1);
« no previous file with comments | « components/query_parser/query_parser.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698