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

Unified 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, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ash/wm/video_detector.h » ('j') | ash/wm/video_detector.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« 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