blob: 98efbcc9c30313545e2acc4e2059c12f63991d01 [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_OMNIBOX_BROWSER_TEST_OMNIBOX_EDIT_MODEL_H_
#define COMPONENTS_OMNIBOX_BROWSER_TEST_OMNIBOX_EDIT_MODEL_H_
#include "components/omnibox/browser/omnibox_edit_model.h"
class TestOmniboxEditModel : public OmniboxEditModel {
public:
TestOmniboxEditModel(OmniboxView* view, OmniboxEditController* controller);
// OmniboxEditModel:
bool PopupIsOpen() const override;
AutocompleteMatch CurrentMatch(GURL*) const override;
void SetPopupIsOpen(bool open);
void SetCurrentMatch(const AutocompleteMatch& match);
private:
bool popup_is_open_;
AutocompleteMatch current_match_;
DISALLOW_COPY_AND_ASSIGN(TestOmniboxEditModel);
};
#endif // COMPONENTS_OMNIBOX_BROWSER_TEST_OMNIBOX_EDIT_MODEL_H_