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

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

Issue 2883913003: Add multiple destruction callbacks to AndroidOverlay. (Closed)
Patch Set: rebased.... though i got not conflicts? 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
« no previous file with comments | « media/mojo/clients/mojo_android_overlay.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..ee6833c25fb5697cafbcb2c7362c953ab817bcfd 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_->AddSurfaceDestroyedCallback(base::Bind(
+ &MockClientCallbacks::OnDestroyed, base::Unretained(&callbacks_)));
base::RunLoop().RunUntilIdle();
}
« no previous file with comments | « 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