Chromium Code Reviews| Index: ash/wm/mock_video_detector_observer.h |
| diff --git a/ash/wm/mock_video_detector_observer.h b/ash/wm/mock_video_detector_observer.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..42803d2c258b5d886a92573c2132df901b545282 |
| --- /dev/null |
| +++ b/ash/wm/mock_video_detector_observer.h |
| @@ -0,0 +1,28 @@ |
| +// Copyright (c) 2012 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 ASH_WM_MOCK_VIDEO_DETECTOR_OBSERVER_H_ |
| +#define ASH_WM_MOCK_VIDEO_DETECTOR_OBSERVER_H_ |
| + |
| +#include "ash/wm/video_detector.h" |
| + |
| +#include <gmock/gmock.h> |
| +#include <gtest/gtest.h> |
| + |
| +namespace ash { |
| + |
| +class MockVideoDetectorObserver : public VideoDetectorObserver { |
|
Daniel Erat
2012/08/30 20:33:59
i dislike gmock (i think that its code is hard to
rharrison
2012/08/31 18:57:13
Since the preference is to not use it I am fine wi
|
| + public: |
| + MOCK_METHOD1(OnVideoDetected, |
| + void(bool is_fullscreen)); |
| + void ExpectOnVideoDetected(bool is_fullscreen) { |
| + EXPECT_CALL(*this, OnVideoDetected(is_fullscreen)) |
| + .Times(1) |
| + .RetiresOnSaturation(); |
| + } |
| +}; // class MockVideoDetectorObserver |
| + |
| +} // namespace ash |
| + |
| +#endif // ASH_WM_MOCK_VIDEO_DETECTOR_OBSERVER_H_ |