Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(92)

Side by Side Diff: ash/wm/mock_video_detector_observer.h

Issue 10905026: Add is_fullscreen to video updates (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | ash/wm/video_detector.h » ('j') | ash/wm/video_detector.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_
OLDNEW
« no previous file with comments | « no previous file | ash/wm/video_detector.h » ('j') | ash/wm/video_detector.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698