OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2012 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 #ifndef ASH_WM_MOCK_VIDEO_DETECTOR_OBSERVER_H_ | |
6 #define ASH_WM_MOCK_VIDEO_DETECTOR_OBSERVER_H_ | |
7 | |
8 #include "ash/wm/video_detector.h" | |
9 | |
10 #include <gmock/gmock.h> | |
11 #include <gtest/gtest.h> | |
12 | |
13 namespace ash { | |
14 | |
15 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
| |
16 public: | |
17 MOCK_METHOD1(OnVideoDetected, | |
18 void(bool is_fullscreen)); | |
19 void ExpectOnVideoDetected(bool is_fullscreen) { | |
20 EXPECT_CALL(*this, OnVideoDetected(is_fullscreen)) | |
21 .Times(1) | |
22 .RetiresOnSaturation(); | |
23 } | |
24 }; // class MockVideoDetectorObserver | |
25 | |
26 } // namespace ash | |
27 | |
28 #endif // ASH_WM_MOCK_VIDEO_DETECTOR_OBSERVER_H_ | |
OLD | NEW |