Lines Matching defs:results
38 void AddSimpleData(QueryResults* results) {
46 results->AppendURLBySwapping(&result1);
47 results->AppendURLBySwapping(&result2);
48 results->AppendURLBySwapping(&result3);
49 CheckHistoryResultConsistency(*results);
58 QueryResults results;
59 AddSimpleData(&results);
64 const size_t* matches = results.MatchesForURL(url1, &match_count);
70 matches = results.MatchesForURL(url2, &match_count);
75 results.DeleteRange(0, 0);
76 CheckHistoryResultConsistency(results);
79 matches = results.MatchesForURL(url1, &match_count);
82 matches = results.MatchesForURL(url2, &match_count);
87 results.DeleteRange(0, 1);
88 EXPECT_EQ(0U, results.size());
89 EXPECT_FALSE(results.MatchesForURL(url1, NULL));
90 EXPECT_FALSE(results.MatchesForURL(url2, NULL));
97 QueryResults results;
98 AddSimpleData(&results);
101 results.DeleteURL(url1);
102 CheckHistoryResultConsistency(results);
103 EXPECT_EQ(1U, results.size());
107 EXPECT_FALSE(results.MatchesForURL(url1, NULL));
108 const size_t* matches = results.MatchesForURL(url2, &match_count);
113 results.DeleteURL(url2);
114 EXPECT_EQ(0U, results.size());
115 EXPECT_FALSE(results.MatchesForURL(url2, NULL));