chromium/ios/chrome/browser/ui/fullscreen/test/test_fullscreen_mediator.h

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

#ifndef IOS_CHROME_BROWSER_UI_FULLSCREEN_TEST_TEST_FULLSCREEN_MEDIATOR_H_
#define IOS_CHROME_BROWSER_UI_FULLSCREEN_TEST_TEST_FULLSCREEN_MEDIATOR_H_

#import "ios/chrome/browser/ui/fullscreen/fullscreen_mediator.h"

#import <memory>

class FullscreenControllerObserver;

// Test FullscreenMediator that prevents throwing exceptions when starting
// animators with no animations.
class TestFullscreenMediator : public FullscreenMediator {
 public:
  TestFullscreenMediator(FullscreenController* controller,
                         FullscreenModel* model);
  ~TestFullscreenMediator() override;

 private:
  // The test observer that provides no-op animation blocks to animators.
  std::unique_ptr<FullscreenControllerObserver> noopAnimationProvider_;
};

#endif  // IOS_CHROME_BROWSER_UI_FULLSCREEN_TEST_TEST_FULLSCREEN_MEDIATOR_H_