Home | History | Annotate | Download | only in autocomplete

Lines Matching refs:shortcut

31   history::ShortcutsDatabase::Shortcut::MatchCore MatchCoreForTesting(
53 bool AddShortcut(const history::ShortcutsDatabase::Shortcut& shortcut);
54 bool UpdateShortcut(const history::ShortcutsDatabase::Shortcut& shortcut);
81 history::ShortcutsDatabase::Shortcut::MatchCore
153 const history::ShortcutsDatabase::Shortcut& shortcut) {
154 return backend_->AddShortcut(shortcut);
158 const history::ShortcutsDatabase::Shortcut& shortcut) {
159 return backend_->UpdateShortcut(shortcut);
207 history::ShortcutsDatabase::Shortcut::MatchCore match_core(
236 history::ShortcutsDatabase::Shortcut::MatchCore match_core =
251 history::ShortcutsDatabase::Shortcut shortcut(
254 EXPECT_TRUE(AddShortcut(shortcut));
257 shortcuts_map().find(shortcut.text));
259 EXPECT_EQ(shortcut.id, shortcut_iter->second.id);
260 EXPECT_EQ(shortcut.match_core.contents,
264 shortcut.match_core.contents = base::ASCIIToUTF16("Google Web Search");
265 EXPECT_TRUE(UpdateShortcut(shortcut));
267 shortcut_iter = shortcuts_map().find(shortcut.text);
269 EXPECT_EQ(shortcut.id, shortcut_iter->second.id);
270 EXPECT_EQ(shortcut.match_core.contents,
276 history::ShortcutsDatabase::Shortcut shortcut1(
281 history::ShortcutsDatabase::Shortcut shortcut2(
286 history::ShortcutsDatabase::Shortcut shortcut3(
291 history::ShortcutsDatabase::Shortcut shortcut4(