| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "content/renderer/media/android/stream_texture_wrapper_impl.h" |
| 6 |
| 7 #include "base/run_loop.h" |
| 8 #include "base/threading/thread_task_runner_handle.h" |
| 9 #include "testing/gtest/include/gtest/gtest.h" |
| 10 |
| 11 namespace content { |
| 12 |
| 13 class StreamTextureWrapperImplTest : public testing::Test { |
| 14 public: |
| 15 StreamTextureWrapperImplTest() {} |
| 16 |
| 17 // Necessary, or else base::ThreadTaskRunnerHandle::Get() fails. |
| 18 base::MessageLoop message_loop_; |
| 19 |
| 20 private: |
| 21 DISALLOW_COPY_AND_ASSIGN(StreamTextureWrapperImplTest); |
| 22 }; |
| 23 |
| 24 // This test's purpose is to make sure the StreamTextureWrapperImpl can properly |
| 25 // be destroyed via StreamTextureWrapper::Deleter. |
| 26 TEST_F(StreamTextureWrapperImplTest, ConstructionDestruction_ShouldSucceed) { |
| 27 media::ScopedStreamTextureWrapper stream_texture_wrapper = |
| 28 StreamTextureWrapperImpl::Create(nullptr, |
| 29 base::ThreadTaskRunnerHandle::Get()); |
| 30 } |
| 31 |
| 32 } // Content |
| OLD | NEW |