| Index: chrome/browser/search_engines/template_url_service_unittest.cc
|
| ===================================================================
|
| --- chrome/browser/search_engines/template_url_service_unittest.cc (revision 139570)
|
| +++ chrome/browser/search_engines/template_url_service_unittest.cc (working copy)
|
| @@ -124,6 +124,28 @@
|
| return google_base_url_;
|
| }
|
|
|
| +
|
| +// QueryHistoryCallbackImpl ---------------------------------------------------
|
| +
|
| +struct QueryHistoryCallbackImpl {
|
| + QueryHistoryCallbackImpl() : success(false) {}
|
| +
|
| + void Callback(HistoryService::Handle handle,
|
| + bool success,
|
| + const history::URLRow* row,
|
| + history::VisitVector* visits) {
|
| + this->success = success;
|
| + if (row)
|
| + this->row = *row;
|
| + if (visits)
|
| + this->visits = *visits;
|
| + }
|
| +
|
| + bool success;
|
| + history::URLRow row;
|
| + history::VisitVector visits;
|
| +};
|
| +
|
| }; // namespace
|
|
|
|
|
| @@ -1018,25 +1040,6 @@
|
| EXPECT_EQ(ASCIIToUTF16("google.fr"), t_url->keyword());
|
| }
|
|
|
| -struct QueryHistoryCallbackImpl {
|
| - QueryHistoryCallbackImpl() : success(false) {}
|
| -
|
| - void Callback(HistoryService::Handle handle,
|
| - bool success,
|
| - const history::URLRow* row,
|
| - history::VisitVector* visits) {
|
| - this->success = success;
|
| - if (row)
|
| - this->row = *row;
|
| - if (visits)
|
| - this->visits = *visits;
|
| - }
|
| -
|
| - bool success;
|
| - history::URLRow row;
|
| - history::VisitVector visits;
|
| -};
|
| -
|
| // Make sure TemplateURLService generates a KEYWORD_GENERATED visit for
|
| // KEYWORD visits.
|
| TEST_F(TemplateURLServiceTest, GenerateVisitOnKeyword) {
|
|
|