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

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

Issue 2451223004: Improve Firefox importer to handle all Firefox profiles. (Closed)
Patch Set: Created 4 years, 1 month 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
« no previous file with comments | « chrome/chrome_utility.gypi ('k') | chrome/common/importer/mock_importer_bridge.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 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 MOCK_METHOD2(AddBookmarks,
20 void(const std::vector<ImportedBookmarkEntry>&,
21 const base::string16&));
22 MOCK_METHOD1(AddHomePage, void(const GURL&));
23 #if defined(OS_WIN)
24 MOCK_METHOD1(AddIE7PasswordInfo,
25 void(const importer::ImporterIE7PasswordInfo&));
26 #endif
27 MOCK_METHOD1(SetFavicons, void(const favicon_base::FaviconUsageDataList&));
28 MOCK_METHOD2(SetHistoryItems,
29 void(const std::vector<ImporterURLRow>&, importer::VisitSource));
30 MOCK_METHOD2(SetKeywords,
31 void(const std::vector<importer::SearchEngineInfo>&, bool));
32 MOCK_METHOD1(SetFirefoxSearchEnginesXMLData,
33 void(const std::vector<std::string>&));
34 MOCK_METHOD1(SetPasswordForm, void(const autofill::PasswordForm&));
35 MOCK_METHOD1(SetAutofillFormData,
36 void(const std::vector<ImporterAutofillFormDataEntry>&));
37 MOCK_METHOD0(NotifyStarted, void());
38 MOCK_METHOD1(NotifyItemStarted, void(importer::ImportItem));
39 MOCK_METHOD1(NotifyItemEnded, void(importer::ImportItem));
40 MOCK_METHOD0(NotifyEnded, void());
41 MOCK_METHOD1(GetLocalizedString, base::string16(int));
42
43 private:
44 ~MockImporterBridge() override;
45 };
46
47 #endif // CHROME_COMMON_IMPORTER_MOCK_IMPORTER_BRIDGE_H_
OLDNEW
« no previous file with comments | « chrome/chrome_utility.gypi ('k') | chrome/common/importer/mock_importer_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698