| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 "media/base/android/mock_android_overlay.h" | 5 #include "media/base/android/mock_android_overlay.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/memory/ptr_util.h" | 8 #include "base/memory/ptr_util.h" |
| 9 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
| 10 | 10 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 | 36 |
| 37 void MockAndroidOverlay::OnOverlayReady() { | 37 void MockAndroidOverlay::OnOverlayReady() { |
| 38 config_->is_ready(this); | 38 config_->is_ready(this); |
| 39 } | 39 } |
| 40 | 40 |
| 41 void MockAndroidOverlay::OnOverlayFailed() { | 41 void MockAndroidOverlay::OnOverlayFailed() { |
| 42 config_->is_failed(this); | 42 config_->is_failed(this); |
| 43 } | 43 } |
| 44 | 44 |
| 45 void MockAndroidOverlay::OnSurfaceDestroyed() { | 45 void MockAndroidOverlay::OnSurfaceDestroyed() { |
| 46 config_->is_destroyed(this); | 46 RunSurfaceDestroyedCallbacks(); |
| 47 } | 47 } |
| 48 | 48 |
| 49 } // namespace media | 49 } // namespace media |
| OLD | NEW |