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

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

Issue 963823003: Move InMemoryURLIndex into chrome/browser/autocomplete (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@shortcut-database
Patch Set: Created 5 years, 9 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
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/shortcuts_provider.h" 5 #include "chrome/browser/autocomplete/shortcuts_provider.h"
6 6
7 #include <math.h> 7 #include <math.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <functional> 10 #include <functional>
11 #include <set> 11 #include <set>
12 #include <string> 12 #include <string>
13 #include <vector> 13 #include <vector>
14 14
15 #include "base/memory/ref_counted.h" 15 #include "base/memory/ref_counted.h"
16 #include "base/message_loop/message_loop.h" 16 #include "base/message_loop/message_loop.h"
17 #include "base/prefs/pref_service.h" 17 #include "base/prefs/pref_service.h"
18 #include "base/strings/stringprintf.h" 18 #include "base/strings/stringprintf.h"
19 #include "base/strings/utf_string_conversions.h" 19 #include "base/strings/utf_string_conversions.h"
20 #include "chrome/browser/autocomplete/chrome_autocomplete_scheme_classifier.h" 20 #include "chrome/browser/autocomplete/chrome_autocomplete_scheme_classifier.h"
21 #include "chrome/browser/autocomplete/in_memory_url_index.h"
21 #include "chrome/browser/autocomplete/shortcuts_backend.h" 22 #include "chrome/browser/autocomplete/shortcuts_backend.h"
22 #include "chrome/browser/autocomplete/shortcuts_backend_factory.h" 23 #include "chrome/browser/autocomplete/shortcuts_backend_factory.h"
23 #include "chrome/browser/history/history_service.h" 24 #include "chrome/browser/history/history_service.h"
24 #include "chrome/browser/history/in_memory_url_index.h"
25 #include "chrome/test/base/testing_profile.h" 25 #include "chrome/test/base/testing_profile.h"
26 #include "components/history/core/browser/url_database.h" 26 #include "components/history/core/browser/url_database.h"
27 #include "components/metrics/proto/omnibox_event.pb.h" 27 #include "components/metrics/proto/omnibox_event.pb.h"
28 #include "components/omnibox/autocomplete_input.h" 28 #include "components/omnibox/autocomplete_input.h"
29 #include "components/omnibox/autocomplete_match.h" 29 #include "components/omnibox/autocomplete_match.h"
30 #include "components/omnibox/autocomplete_provider.h" 30 #include "components/omnibox/autocomplete_provider.h"
31 #include "components/omnibox/autocomplete_result.h" 31 #include "components/omnibox/autocomplete_result.h"
32 #include "content/public/browser/notification_service.h" 32 #include "content/public/browser/notification_service.h"
33 #include "content/public/test/test_browser_thread.h" 33 #include "content/public/test/test_browser_thread.h"
34 #include "testing/gtest/include/gtest/gtest.h" 34 #include "testing/gtest/include/gtest/gtest.h"
(...skipping 820 matching lines...) Expand 10 before | Expand all | Expand 10 after
855 extension.get(), extensions::UnloadedExtensionInfo::REASON_UNINSTALL); 855 extension.get(), extensions::UnloadedExtensionInfo::REASON_UNINSTALL);
856 content::NotificationService::current()->Notify( 856 content::NotificationService::current()->Notify(
857 extensions::NOTIFICATION_EXTENSION_UNLOADED_DEPRECATED, 857 extensions::NOTIFICATION_EXTENSION_UNLOADED_DEPRECATED,
858 content::Source<Profile>(&profile_), 858 content::Source<Profile>(&profile_),
859 content::Details<extensions::UnloadedExtensionInfo>(&details)); 859 content::Details<extensions::UnloadedExtensionInfo>(&details));
860 860
861 // Now the URL should have disappeared. 861 // Now the URL should have disappeared.
862 RunTest(text, false, ExpectedURLs(), std::string(), base::string16()); 862 RunTest(text, false, ExpectedURLs(), std::string(), base::string16());
863 } 863 }
864 #endif 864 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698