blob: aff7ff5b3ad6c1bcc19353d4105c068cbd2aba4a [file] [log] [blame]
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_AUTOFILL_MOCK_MANUAL_FILLING_CONTROLLER_H_
#define CHROME_BROWSER_AUTOFILL_MOCK_MANUAL_FILLING_CONTROLLER_H_
#include "base/macros.h"
#include "chrome/browser/autofill/manual_filling_controller.h"
#include "testing/gmock/include/gmock/gmock.h"
class MockManualFillingController
: public ManualFillingController,
public base::SupportsWeakPtr<MockManualFillingController> {
public:
MockManualFillingController();
~MockManualFillingController() override;
MOCK_METHOD1(RefreshSuggestions, void(const autofill::AccessorySheetData&));
MOCK_METHOD1(NotifyFocusedInputChanged,
void(autofill::mojom::FocusedFieldType));
MOCK_METHOD2(UpdateSourceAvailability,
void(ManualFillingController::FillingSource, bool));
MOCK_METHOD0(Hide, void());
MOCK_METHOD1(OnAutomaticGenerationStatusChanged, void(bool));
MOCK_METHOD2(OnFillingTriggered,
void(autofill::AccessoryTabType type,
const autofill::UserInfo::Field&));
MOCK_CONST_METHOD1(OnOptionSelected,
void(autofill::AccessoryAction selected_action));
MOCK_METHOD3(GetFavicon, void(int, const std::string&, IconCallback));
MOCK_CONST_METHOD0(container_view, gfx::NativeView());
private:
DISALLOW_COPY_AND_ASSIGN(MockManualFillingController);
};
#endif // CHROME_BROWSER_AUTOFILL_MOCK_MANUAL_FILLING_CONTROLLER_H_