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

Side by Side Diff: third_party/WebKit/Source/core/html/shadow/MediaControlsOrientationLockDelegateTest.cpp

Issue 2716203002: blink: Fix cc/paint skia type mismatches (Closed)
Patch Set: Fix canvas 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 "core/html/shadow/MediaControlsOrientationLockDelegate.h" 5 #include "core/html/shadow/MediaControlsOrientationLockDelegate.h"
6 6
7 #include "core/dom/Document.h" 7 #include "core/dom/Document.h"
8 #include "core/dom/DocumentUserGestureToken.h" 8 #include "core/dom/DocumentUserGestureToken.h"
9 #include "core/dom/Fullscreen.h" 9 #include "core/dom/Fullscreen.h"
10 #include "core/frame/ScreenOrientationController.h" 10 #include "core/frame/ScreenOrientationController.h"
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 bool didLoadingProgress() override { return false; }; 62 bool didLoadingProgress() override { return false; };
63 bool hasSingleSecurityOrigin() const override { return true; }; 63 bool hasSingleSecurityOrigin() const override { return true; };
64 bool didPassCORSAccessCheck() const override { return true; }; 64 bool didPassCORSAccessCheck() const override { return true; };
65 double mediaTimeForTimeValue(double timeValue) const override { 65 double mediaTimeForTimeValue(double timeValue) const override {
66 return timeValue; 66 return timeValue;
67 }; 67 };
68 unsigned decodedFrameCount() const override { return 0; }; 68 unsigned decodedFrameCount() const override { return 0; };
69 unsigned droppedFrameCount() const override { return 0; }; 69 unsigned droppedFrameCount() const override { return 0; };
70 size_t audioDecodedByteCount() const override { return 0; }; 70 size_t audioDecodedByteCount() const override { return 0; };
71 size_t videoDecodedByteCount() const override { return 0; }; 71 size_t videoDecodedByteCount() const override { return 0; };
72 void paint(WebCanvas*, const WebRect&, SkPaint&) override{}; 72 void paint(WebCanvas*, const WebRect&, PaintFlags&) override{};
73 73
74 MOCK_CONST_METHOD0(naturalSize, WebSize()); 74 MOCK_CONST_METHOD0(naturalSize, WebSize());
75 }; 75 };
76 76
77 class MockChromeClient : public EmptyChromeClient { 77 class MockChromeClient : public EmptyChromeClient {
78 public: 78 public:
79 MOCK_CONST_METHOD0(screenInfo, WebScreenInfo()); 79 MOCK_CONST_METHOD0(screenInfo, WebScreenInfo());
80 }; 80 };
81 81
82 class StubFrameLoaderClient : public EmptyFrameLoaderClient { 82 class StubFrameLoaderClient : public EmptyFrameLoaderClient {
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after
419 EXPECT_EQ(WebScreenOrientationLockLandscape, computeOrientationLock()); 419 EXPECT_EQ(WebScreenOrientationLockLandscape, computeOrientationLock());
420 420
421 screenInfo.orientationType = WebScreenOrientationLandscapeSecondary; 421 screenInfo.orientationType = WebScreenOrientationLandscapeSecondary;
422 EXPECT_CALL(chromeClient(), screenInfo()) 422 EXPECT_CALL(chromeClient(), screenInfo())
423 .Times(1) 423 .Times(1)
424 .WillOnce(Return(screenInfo)); 424 .WillOnce(Return(screenInfo));
425 EXPECT_EQ(WebScreenOrientationLockLandscape, computeOrientationLock()); 425 EXPECT_EQ(WebScreenOrientationLockLandscape, computeOrientationLock());
426 } 426 }
427 427
428 } // namespace blink 428 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698