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

Unified Diff: cc/layers/video_frame_provider_client_impl_unittest.cc

Issue 1411663002: cc: Split Proxy to eliminate unnecessary dependencies on the impl side (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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
Index: cc/layers/video_frame_provider_client_impl_unittest.cc
diff --git a/cc/layers/video_frame_provider_client_impl_unittest.cc b/cc/layers/video_frame_provider_client_impl_unittest.cc
index 4cbd493e0d54aa316e6c478c3ef8312489f6630e..1c0f2847278b7000ac1f87d924ff8e79f560863e 100644
--- a/cc/layers/video_frame_provider_client_impl_unittest.cc
+++ b/cc/layers/video_frame_provider_client_impl_unittest.cc
@@ -18,10 +18,11 @@ namespace cc {
// NOTE: We cannot use DebugScopedSetImplThreadAndMainThreadBlocked in these
// tests because it gets destroyed before the VideoLayerImpl is destroyed. This
// causes a DCHECK in VideoLayerImpl's destructor to fail.
-static void DebugSetImplThreadAndMainThreadBlocked(Proxy* proxy) {
+static void DebugSetImplThreadAndMainThreadBlocked(
+ ThreadVerifier* thread_verifier) {
#if DCHECK_IS_ON()
- proxy->SetCurrentThreadIsImplThread(true);
- proxy->SetMainThreadBlocked(true);
+ thread_verifier->SetCurrentThreadIsImplThread(true);
+ thread_verifier->SetMainThreadBlocked(true);
#endif
}
@@ -36,7 +37,7 @@ class VideoFrameProviderClientImplTest : public testing::Test,
gfx::Rect(10, 10),
gfx::Size(10, 10),
base::TimeDelta())) {
- DebugSetImplThreadAndMainThreadBlocked(impl_.proxy());
+ DebugSetImplThreadAndMainThreadBlocked(impl_.thread_verifier());
}
~VideoFrameProviderClientImplTest() {

Powered by Google App Engine
This is Rietveld 408576698