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