blob: 48ced19633b69048759ac50f826db4ae77e5ebd2 [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
Ioana Pandele67513a82019-06-11 10:21:008#include "base/macros.h"
Ioana Pandele961d0cd2019-02-06 12:33:459#include "chrome/browser/autofill/manual_filling_controller.h"
10#include "testing/gmock/include/gmock/gmock.h"
11
12class MockManualFillingController
13 : public ManualFillingController,
14 public base::SupportsWeakPtr<MockManualFillingController> {
15 public:
16 MockManualFillingController();
17 ~MockManualFillingController() override;
18
Friedrich Horschig9a66f142019-06-24 17:23:2819 MOCK_METHOD1(RefreshSuggestions, void(const autofill::AccessorySheetData&));
20 MOCK_METHOD1(NotifyFocusedInputChanged,
21 void(autofill::mojom::FocusedFieldType));
Friedrich Horschig9a66f142019-06-24 17:23:2822 MOCK_METHOD2(UpdateSourceAvailability,
23 void(ManualFillingController::FillingSource, bool));
Ioana Pandele67513a82019-06-11 10:21:0024 MOCK_METHOD0(Hide, void());
Friedrich Horschig9a66f142019-06-24 17:23:2825 MOCK_METHOD1(OnAutomaticGenerationStatusChanged, void(bool));
Friedrich Horschig8e7605432019-05-29 08:32:1126 MOCK_METHOD2(OnFillingTriggered,
27 void(autofill::AccessoryTabType type,
28 const autofill::UserInfo::Field&));
Friedrich Horschigb33702c2019-05-24 14:56:5429 MOCK_CONST_METHOD1(OnOptionSelected,
30 void(autofill::AccessoryAction selected_action));
Friedrich Horschig9a66f142019-06-24 17:23:2831 MOCK_METHOD2(GetFavicon,
32 void(int, base::OnceCallback<void(const gfx::Image&)>));
Ioana Pandele961d0cd2019-02-06 12:33:4533 MOCK_CONST_METHOD0(container_view, gfx::NativeView());
Ioana Pandele67513a82019-06-11 10:21:0034
35 private:
36 DISALLOW_COPY_AND_ASSIGN(MockManualFillingController);
Ioana Pandele961d0cd2019-02-06 12:33:4537};
38
39#endif // CHROME_BROWSER_AUTOFILL_MOCK_MANUAL_FILLING_CONTROLLER_H_