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

Side by Side Diff: chrome/common/importer/mock_importer_bridge.h

Issue 2296633002: Fix Firefox bookmarks import. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: build fix Created 4 years 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
(Empty)
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_COMMON_IMPORTER_MOCK_IMPORTER_BRIDGE_H_
6 #define CHROME_COMMON_IMPORTER_MOCK_IMPORTER_BRIDGE_H_
7
8 #include <string>
9 #include <vector>
10
11 #include "chrome/common/importer/imported_bookmark_entry.h"
12 #include "chrome/common/importer/importer_autofill_form_data_entry.h"
13 #include "chrome/common/importer/importer_bridge.h"
14 #include "components/autofill/core/common/password_form.h"
15 #include "testing/gmock/include/gmock/gmock.h"
16
17 class MockImporterBridge : public ImporterBridge {
18 public:
19 MockImporterBridge();
20
21 MOCK_METHOD2(AddBookmarks,
22 void(const std::vector<ImportedBookmarkEntry>&,
23 const base::string16&));
24 MOCK_METHOD1(AddHomePage, void(const GURL&));
25 #if defined(OS_WIN)
26 MOCK_METHOD1(AddIE7PasswordInfo,
27 void(const importer::ImporterIE7PasswordInfo&));
28 #endif
29 MOCK_METHOD1(SetFavicons, void(const favicon_base::FaviconUsageDataList&));
30 MOCK_METHOD2(SetHistoryItems,
31 void(const std::vector<ImporterURLRow>&, importer::VisitSource));
32 MOCK_METHOD2(SetKeywords,
33 void(const std::vector<importer::SearchEngineInfo>&, bool));
34 MOCK_METHOD1(SetFirefoxSearchEnginesXMLData,
35 void(const std::vector<std::string>&));
36 MOCK_METHOD1(SetPasswordForm, void(const autofill::PasswordForm&));
37 MOCK_METHOD1(SetAutofillFormData,
38 void(const std::vector<ImporterAutofillFormDataEntry>&));
39 MOCK_METHOD0(NotifyStarted, void());
40 MOCK_METHOD1(NotifyItemStarted, void(importer::ImportItem));
41 MOCK_METHOD1(NotifyItemEnded, void(importer::ImportItem));
42 MOCK_METHOD0(NotifyEnded, void());
43 MOCK_METHOD1(GetLocalizedString, base::string16(int));
44
45 private:
46 ~MockImporterBridge() override;
47 };
48
49 #endif // CHROME_COMMON_IMPORTER_MOCK_IMPORTER_BRIDGE_H_
OLDNEW
« no previous file with comments | « chrome/browser/importer/firefox_importer_browsertest.cc ('k') | chrome/common/importer/mock_importer_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698