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

Unified Diff: components/omnibox/browser/shortcuts_backend.h

Issue 1654833005: Componentizes shortcuts unittests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/omnibox/browser/BUILD.gn ('k') | components/omnibox/browser/shortcuts_backend_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/omnibox/browser/shortcuts_backend.h
diff --git a/components/omnibox/browser/shortcuts_backend.h b/components/omnibox/browser/shortcuts_backend.h
index a2fde3fab149be88a07b74c38bbcf7681b34886a..69894e4e24711b56d4b249abed2315ca20ba56a6 100644
--- a/components/omnibox/browser/shortcuts_backend.h
+++ b/components/omnibox/browser/shortcuts_backend.h
@@ -27,7 +27,14 @@
#include "components/search_engines/search_terms_data.h"
#include "url/gurl.h"
+class ShortcutsBackend;
class TemplateURLService;
+struct TestShortcutData;
+
+void PopulateShortcutsBackendWithTestData(
+ scoped_refptr<ShortcutsBackend> backend,
+ TestShortcutData* db,
+ size_t db_size);
namespace history {
class HistoryService;
@@ -89,8 +96,11 @@ class ShortcutsBackend : public RefcountedKeyedService,
private:
friend class base::RefCountedThreadSafe<ShortcutsBackend>;
- friend class ShortcutsProviderTest;
friend class ShortcutsBackendTest;
+ friend void PopulateShortcutsBackendWithTestData(
+ scoped_refptr<ShortcutsBackend> backend,
+ TestShortcutData* db,
+ size_t db_size);
FRIEND_TEST_ALL_PREFIXES(ShortcutsBackendTest, EntitySuggestionTest);
enum CurrentState {
« no previous file with comments | « components/omnibox/browser/BUILD.gn ('k') | components/omnibox/browser/shortcuts_backend_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698