1// 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#import "ios/chrome/browser/infobars/test/fake_infobar_ios.h"
6
7#include "ios/chrome/browser/infobars/test/fake_infobar_delegate.h"
8
9#if !defined(__has_feature) || !__has_feature(objc_arc)
10#error "This file requires ARC support."
11#endif
12
13FakeInfobarIOS::FakeInfobarIOS(InfobarType type, base::string16 message_text)
14    : InfoBarIOS(type, std::make_unique<FakeInfobarDelegate>(message_text)) {}
15
16FakeInfobarIOS::FakeInfobarIOS(
17    std::unique_ptr<FakeInfobarDelegate> fake_delegate)
18    : InfoBarIOS(InfobarType::kInfobarTypeConfirm, std::move(fake_delegate)) {}
19
20FakeInfobarIOS::~FakeInfobarIOS() = default;
21