#include "components/omnibox/browser/history_scoring_signals_annotator.h"
#include "base/test/task_environment.h"
#include "components/bookmarks/test/test_bookmark_client.h"
#include "components/history/core/browser/keyword_id.h"
#include "components/history/core/browser/url_database.h"
#include "components/history/core/browser/url_row.h"
#include "components/history/core/test/history_service_test_util.h"
#include "components/omnibox/browser/autocomplete_input.h"
#include "components/omnibox/browser/autocomplete_match.h"
#include "components/omnibox/browser/autocomplete_provider_client.h"
#include "components/omnibox/browser/autocomplete_result.h"
#include "components/omnibox/browser/fake_autocomplete_provider_client.h"
#include "components/omnibox/browser/test_scheme_classifier.h"
URLRow;
namespace {
const history::KeywordID kTestKeywordId = …;
URLRow CreateUrlRow(const std::string& url,
const std::u16string& title,
int typed_count,
int visit_count,
const base::Time& last_visit,
int64_t id) { … }
}
class HistoryScoringSignalsAnnotatorTest : public testing::Test { … };
void HistoryScoringSignalsAnnotatorTest::SetUp() { … }
void HistoryScoringSignalsAnnotatorTest::FillHistoryDbData() { … }
void HistoryScoringSignalsAnnotatorTest::CreateAutocompleteResult() { … }
void HistoryScoringSignalsAnnotatorTest::TearDown() { … }
TEST_F(HistoryScoringSignalsAnnotatorTest, AnnotateResult) { … }