blob: 1bb82dc4ea5ae9a6657bbd65bec627fa3a6190f7 [file] [log] [blame]
Ioana Pandele961d0cd2019-02-06 12:33:451// Copyright 2019 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_BROWSER_AUTOFILL_MOCK_MANUAL_FILLING_CONTROLLER_H_
6#define CHROME_BROWSER_AUTOFILL_MOCK_MANUAL_FILLING_CONTROLLER_H_
7
8#include "chrome/browser/autofill/manual_filling_controller.h"
9#include "testing/gmock/include/gmock/gmock.h"
10
11class MockManualFillingController
12 : public ManualFillingController,
13 public base::SupportsWeakPtr<MockManualFillingController> {
14 public:
15 MockManualFillingController();
16 ~MockManualFillingController() override;
17
18 MOCK_METHOD1(OnAutomaticGenerationStatusChanged, void(bool));
19 MOCK_METHOD1(OnFilledIntoFocusedField, void(autofill::FillingStatus));
20 MOCK_METHOD2(RefreshSuggestionsForField,
Jan Wilken Dörrie4ebe0cec2019-05-23 20:20:4421 void(autofill::mojom::FocusedFieldType,
22 const autofill::AccessorySheetData&));
Ioana Pandele961d0cd2019-02-06 12:33:4523 MOCK_METHOD1(ShowWhenKeyboardIsVisible,
24 void(ManualFillingController::FillingSource));
Jan Wilken Dörried5fa44252019-05-24 15:43:1625 MOCK_METHOD0(ShowTouchToFillSheet, void());
Ioana Pandele961d0cd2019-02-06 12:33:4526 MOCK_METHOD1(Hide, void(ManualFillingController::FillingSource));
27 MOCK_METHOD2(GetFavicon,
28 void(int, base::OnceCallback<void(const gfx::Image&)>));
Friedrich Horschig8e7605432019-05-29 08:32:1129 MOCK_METHOD2(OnFillingTriggered,
30 void(autofill::AccessoryTabType type,
31 const autofill::UserInfo::Field&));
Friedrich Horschigb33702c2019-05-24 14:56:5432 MOCK_CONST_METHOD1(OnOptionSelected,
33 void(autofill::AccessoryAction selected_action));
Ioana Pandele961d0cd2019-02-06 12:33:4534 MOCK_METHOD0(OnGenerationRequested, void());
35 MOCK_CONST_METHOD0(container_view, gfx::NativeView());
36};
37
38#endif // CHROME_BROWSER_AUTOFILL_MOCK_MANUAL_FILLING_CONTROLLER_H_