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

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

Issue 12211105: Move remaining non-test, non-Chrome-specific Prefs code to base/prefs/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments, merge to LKGR. Created 7 years, 10 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 "chrome/browser/autocomplete/history_quick_provider.h" 5 #include "chrome/browser/autocomplete/history_quick_provider.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <functional> 8 #include <functional>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "base/message_loop.h" 14 #include "base/message_loop.h"
15 #include "base/prefs/pref_service.h"
15 #include "base/utf_string_conversions.h" 16 #include "base/utf_string_conversions.h"
16 #include "chrome/browser/autocomplete/autocomplete_provider_listener.h" 17 #include "chrome/browser/autocomplete/autocomplete_provider_listener.h"
17 #include "chrome/browser/autocomplete/autocomplete_result.h" 18 #include "chrome/browser/autocomplete/autocomplete_result.h"
18 #include "chrome/browser/autocomplete/history_url_provider.h" 19 #include "chrome/browser/autocomplete/history_url_provider.h"
19 #include "chrome/browser/history/history_service.h" 20 #include "chrome/browser/history/history_service.h"
20 #include "chrome/browser/history/history_service_factory.h" 21 #include "chrome/browser/history/history_service_factory.h"
21 #include "chrome/browser/history/in_memory_url_index.h" 22 #include "chrome/browser/history/in_memory_url_index.h"
22 #include "chrome/browser/history/url_database.h" 23 #include "chrome/browser/history/url_database.h"
23 #include "chrome/browser/history/url_index_private_data.h" 24 #include "chrome/browser/history/url_index_private_data.h"
24 #include "chrome/browser/prefs/pref_service.h"
25 #include "chrome/common/pref_names.h" 25 #include "chrome/common/pref_names.h"
26 #include "chrome/test/base/testing_browser_process.h" 26 #include "chrome/test/base/testing_browser_process.h"
27 #include "chrome/test/base/testing_profile.h" 27 #include "chrome/test/base/testing_profile.h"
28 #include "content/public/test/test_browser_thread.h" 28 #include "content/public/test/test_browser_thread.h"
29 #include "testing/gtest/include/gtest/gtest.h" 29 #include "testing/gtest/include/gtest/gtest.h"
30 30
31 using base::Time; 31 using base::Time;
32 using base::TimeDelta; 32 using base::TimeDelta;
33 33
34 using content::BrowserThread; 34 using content::BrowserThread;
(...skipping 539 matching lines...) Expand 10 before | Expand all | Expand 10 after
574 } 574 }
575 575
576 TEST_F(HQPOrderingTest, TEAMatch) { 576 TEST_F(HQPOrderingTest, TEAMatch) {
577 std::vector<std::string> expected_urls; 577 std::vector<std::string> expected_urls;
578 expected_urls.push_back("http://www.teamliquid.net/"); 578 expected_urls.push_back("http://www.teamliquid.net/");
579 expected_urls.push_back("http://www.teamliquid.net/tlpd"); 579 expected_urls.push_back("http://www.teamliquid.net/tlpd");
580 expected_urls.push_back("http://www.teamliquid.net/tlpd/korean/players"); 580 expected_urls.push_back("http://www.teamliquid.net/tlpd/korean/players");
581 RunTest(ASCIIToUTF16("tea"), expected_urls, true, 581 RunTest(ASCIIToUTF16("tea"), expected_urls, true,
582 ASCIIToUTF16("www.teamliquid.net")); 582 ASCIIToUTF16("www.teamliquid.net"));
583 } 583 }
OLDNEW
« no previous file with comments | « chrome/browser/autocomplete/history_quick_provider.cc ('k') | chrome/browser/autocomplete/history_url_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698