blob: 27e6e2ec44507004ba43dfea0c6694ae993423b9 [file] [log] [blame]
// Copyright 2018 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 COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_DOWNLOAD_MANAGER_H_
#define COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_DOWNLOAD_MANAGER_H_
#include <vector>
#include "components/autofill/core/browser/autofill_download_manager.h"
#include "components/autofill/core/common/form_data.h"
namespace autofill {
class FormStructure;
class TestAutofillDownloadManager : public AutofillDownloadManager {
public:
TestAutofillDownloadManager(AutofillDriver* driver,
AutofillDownloadManager::Observer* observer);
~TestAutofillDownloadManager() override;
// AutofillDownloadManager overrides.
bool StartQueryRequest(const std::vector<FormStructure*>& forms) override;
// Unique to TestAutofillDownloadManager:
// Verify that the last queried forms equal |expected_forms|.
void VerifyLastQueriedForms(const std::vector<FormData>& expected_forms);
private:
std::vector<FormStructure*> last_queried_forms_;
DISALLOW_COPY_AND_ASSIGN(TestAutofillDownloadManager);
};
} // namespace autofill
#endif // COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_DOWNLOAD_MANAGER_H_