chromium/ios/chrome/browser/infobars/model/test/fake_infobar_ios.mm

// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#import "ios/chrome/browser/infobars/model/test/fake_infobar_ios.h"

#import "ios/chrome/browser/infobars/model/test/fake_infobar_delegate.h"

FakeInfobarIOS::FakeInfobarIOS(InfobarType type, std::u16string message_text)
    : InfoBarIOS(type, std::make_unique<FakeInfobarDelegate>(message_text)) {}

FakeInfobarIOS::FakeInfobarIOS(
    std::unique_ptr<FakeInfobarDelegate> fake_delegate)
    : InfoBarIOS(InfobarType::kInfobarTypeConfirm, std::move(fake_delegate)) {}

FakeInfobarIOS::~FakeInfobarIOS() = default;