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

Side by Side Diff: chrome/browser/autocomplete/extension_app_provider_unittest.cc

Issue 339433007: Componentize URLDatabase (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/basictypes.h" 5 #include "base/basictypes.h"
6 #include "base/message_loop/message_loop.h" 6 #include "base/message_loop/message_loop.h"
7 #include "base/strings/utf_string_conversions.h" 7 #include "base/strings/utf_string_conversions.h"
8 #include "chrome/browser/autocomplete/autocomplete_match.h" 8 #include "chrome/browser/autocomplete/autocomplete_match.h"
9 #include "chrome/browser/autocomplete/extension_app_provider.h" 9 #include "chrome/browser/autocomplete/extension_app_provider.h"
10 #include "chrome/browser/history/history_service.h" 10 #include "chrome/browser/history/history_service.h"
11 #include "chrome/browser/history/history_service_factory.h" 11 #include "chrome/browser/history/history_service_factory.h"
12 #include "chrome/browser/history/url_database.h"
13 #include "chrome/test/base/testing_profile.h" 12 #include "chrome/test/base/testing_profile.h"
13 #include "components/history/core/browser/url_database.h"
14 #include "components/metrics/proto/omnibox_event.pb.h" 14 #include "components/metrics/proto/omnibox_event.pb.h"
15 #include "content/public/test/test_browser_thread.h" 15 #include "content/public/test/test_browser_thread.h"
16 #include "testing/gtest/include/gtest/gtest.h" 16 #include "testing/gtest/include/gtest/gtest.h"
17 17
18 using base::ASCIIToUTF16; 18 using base::ASCIIToUTF16;
19 19
20 class ExtensionAppProviderTest : public testing::Test { 20 class ExtensionAppProviderTest : public testing::Test {
21 protected: 21 protected:
22 struct test_data { 22 struct test_data {
23 const base::string16 input; 23 const base::string16 input;
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 ExtensionAppProvider::ExtensionApp extension_app = 149 ExtensionAppProvider::ExtensionApp extension_app =
150 {ASCIIToUTF16(cases[i].name), url, true}; 150 {ASCIIToUTF16(cases[i].name), url, true};
151 AutocompleteMatch match = 151 AutocompleteMatch match =
152 app_provider_->CreateAutocompleteMatch(input, 152 app_provider_->CreateAutocompleteMatch(input,
153 extension_app, 153 extension_app,
154 0, 154 0,
155 base::string16::npos); 155 base::string16::npos);
156 EXPECT_EQ(ASCIIToUTF16(cases[i].match_contents), match.contents); 156 EXPECT_EQ(ASCIIToUTF16(cases[i].match_contents), match.contents);
157 } 157 }
158 } 158 }
OLDNEW
« no previous file with comments | « chrome/browser/autocomplete/extension_app_provider.cc ('k') | chrome/browser/autocomplete/history_quick_provider_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698