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

Side by Side Diff: content/renderer/media/renderer_webmediaplayer_delegate_browsertest.cc

Issue 2756553002: Force the video to go fullscreen when setting persistent video (Closed)
Patch Set: addressed nits Created 3 years, 9 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <tuple> 5 #include <tuple>
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/location.h" 9 #include "base/location.h"
10 #include "base/run_loop.h" 10 #include "base/run_loop.h"
(...skipping 26 matching lines...) Expand all
37 ~MockWebMediaPlayerDelegateObserver() {} 37 ~MockWebMediaPlayerDelegateObserver() {}
38 38
39 // WebMediaPlayerDelegate::Observer implementation. 39 // WebMediaPlayerDelegate::Observer implementation.
40 MOCK_METHOD0(OnFrameHidden, void()); 40 MOCK_METHOD0(OnFrameHidden, void());
41 MOCK_METHOD0(OnFrameClosed, void()); 41 MOCK_METHOD0(OnFrameClosed, void());
42 MOCK_METHOD0(OnFrameShown, void()); 42 MOCK_METHOD0(OnFrameShown, void());
43 MOCK_METHOD0(OnIdleTimeout, void()); 43 MOCK_METHOD0(OnIdleTimeout, void());
44 MOCK_METHOD0(OnPlay, void()); 44 MOCK_METHOD0(OnPlay, void());
45 MOCK_METHOD0(OnPause, void()); 45 MOCK_METHOD0(OnPause, void());
46 MOCK_METHOD1(OnVolumeMultiplierUpdate, void(double)); 46 MOCK_METHOD1(OnVolumeMultiplierUpdate, void(double));
47 MOCK_METHOD1(OnBecamePersistentVideo, void(bool));
47 }; 48 };
48 49
49 class RendererWebMediaPlayerDelegateTest : public content::RenderViewTest { 50 class RendererWebMediaPlayerDelegateTest : public content::RenderViewTest {
50 public: 51 public:
51 RendererWebMediaPlayerDelegateTest() {} 52 RendererWebMediaPlayerDelegateTest() {}
52 ~RendererWebMediaPlayerDelegateTest() override {} 53 ~RendererWebMediaPlayerDelegateTest() override {}
53 54
54 void SetUp() override { 55 void SetUp() override {
55 RenderViewTest::SetUp(); 56 RenderViewTest::SetUp();
56 // Start the tick clock off at a non-null value. 57 // Start the tick clock off at a non-null value.
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 MediaContentType::Persistent); 303 MediaContentType::Persistent);
303 RunLoopOnce(); 304 RunLoopOnce();
304 delegate_manager_->SetFrameHiddenForTesting(false); 305 delegate_manager_->SetFrameHiddenForTesting(false);
305 RunLoopOnce(); 306 RunLoopOnce();
306 histogram_tester.ExpectTotalCount("Media.Android.BackgroundVideoTime", 2); 307 histogram_tester.ExpectTotalCount("Media.Android.BackgroundVideoTime", 2);
307 } 308 }
308 309
309 #endif // OS_ANDROID 310 #endif // OS_ANDROID
310 311
311 } // namespace media 312 } // namespace media
OLDNEW
« no previous file with comments | « content/renderer/media/renderer_webmediaplayer_delegate.cc ('k') | content/renderer/media/webmediaplayer_ms.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698