| Index: components/omnibox/browser/in_memory_url_index_unittest.cc
|
| diff --git a/components/omnibox/browser/in_memory_url_index_unittest.cc b/components/omnibox/browser/in_memory_url_index_unittest.cc
|
| index 57751d876e357a104c8d836b3aeeccc2ace1845f..dfa569271008a0eed91a6557b4edbb8a89a85277 100644
|
| --- a/components/omnibox/browser/in_memory_url_index_unittest.cc
|
| +++ b/components/omnibox/browser/in_memory_url_index_unittest.cc
|
| @@ -7,6 +7,7 @@
|
|
|
| #include <algorithm>
|
| #include <fstream>
|
| +#include <numeric>
|
|
|
| #include "base/auto_reset.h"
|
| #include "base/files/file_path.h"
|
| @@ -738,15 +739,13 @@ TEST_F(InMemoryURLIndexTest, TrimHistoryIds) {
|
| };
|
|
|
| auto GetHistoryIdsUpTo = [&](HistoryID max) {
|
| - HistoryIDSet res;
|
| - // All ids are inserted in the end so the implicit hint would work.
|
| - for (HistoryID id = kMinRowId; id < max; ++id)
|
| - res.insert(id);
|
| + HistoryIDVector res(max - kMinRowId);
|
| + std::iota(res.begin(), res.end(), kMinRowId);
|
| return res;
|
| };
|
|
|
| auto CountGroupElementsInIds = [](const ItemGroup& group,
|
| - const HistoryIDSet& ids) {
|
| + const HistoryIDVector& ids) {
|
| return std::count_if(ids.begin(), ids.end(), [&](history::URLID id) {
|
| return group.min_id <= id && id < group.max_id;
|
| });
|
|
|