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

Unified Diff: media/mojo/clients/mojo_android_overlay_unittest.cc

Issue 2883913003: Add multiple destruction callbacks to AndroidOverlay. (Closed)
Patch Set: rebased Created 3 years, 7 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: media/mojo/clients/mojo_android_overlay_unittest.cc
diff --git a/media/mojo/clients/mojo_android_overlay_unittest.cc b/media/mojo/clients/mojo_android_overlay_unittest.cc
index cf11d7e996b9962c7a998c4bba26403c9ac4f511..c4e2f6e88add99e9409042bdb58d0c1d9d540db8 100644
--- a/media/mojo/clients/mojo_android_overlay_unittest.cc
+++ b/media/mojo/clients/mojo_android_overlay_unittest.cc
@@ -80,8 +80,6 @@ class MojoAndroidOverlayTest : public ::testing::Test {
base::Unretained(&callbacks_));
config_.failed_cb = base::Bind(&MockClientCallbacks::OnFailed,
base::Unretained(&callbacks_));
- config_.destroyed_cb = base::Bind(&MockClientCallbacks::OnDestroyed,
- base::Unretained(&callbacks_));
// Make sure that we have an implementation of GpuSurfaceLookup.
gpu::GpuSurfaceTracker::Get();
@@ -111,6 +109,8 @@ class MojoAndroidOverlayTest : public ::testing::Test {
overlay_client_.reset(new MojoAndroidOverlay(
std::move(provider_ptr), std::move(config_), routing_token));
+ overlay_client_->AddDestructionCallback(base::Bind(
+ &MockClientCallbacks::OnDestroyed, base::Unretained(&callbacks_)));
base::RunLoop().RunUntilIdle();
}
« media/base/android/android_overlay.cc ('K') | « media/mojo/clients/mojo_android_overlay.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698