| Index: content/renderer/media/android/stream_texture_wrapper_impl_unittest.cc
|
| diff --git a/content/renderer/media/android/stream_texture_wrapper_impl_unittest.cc b/content/renderer/media/android/stream_texture_wrapper_impl_unittest.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..630a8905b6e8f412bae266ea254f918a927aa2d4
|
| --- /dev/null
|
| +++ b/content/renderer/media/android/stream_texture_wrapper_impl_unittest.cc
|
| @@ -0,0 +1,32 @@
|
| +// Copyright 2016 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "content/renderer/media/android/stream_texture_wrapper_impl.h"
|
| +
|
| +#include "base/run_loop.h"
|
| +#include "base/threading/thread_task_runner_handle.h"
|
| +#include "testing/gtest/include/gtest/gtest.h"
|
| +
|
| +namespace content {
|
| +
|
| +class StreamTextureWrapperImplTest : public testing::Test {
|
| + public:
|
| + StreamTextureWrapperImplTest() {}
|
| +
|
| + // Necessary, or else base::ThreadTaskRunnerHandle::Get() fails.
|
| + base::MessageLoop message_loop_;
|
| +
|
| + private:
|
| + DISALLOW_COPY_AND_ASSIGN(StreamTextureWrapperImplTest);
|
| +};
|
| +
|
| +// This test's purpose is to make sure the StreamTextureWrapperImpl can properly
|
| +// be destroyed via StreamTextureWrapper::Deleter.
|
| +TEST_F(StreamTextureWrapperImplTest, ConstructionDestruction_ShouldSucceed) {
|
| + media::ScopedStreamTextureWrapper stream_texture_wrapper =
|
| + StreamTextureWrapperImpl::Create(nullptr,
|
| + base::ThreadTaskRunnerHandle::Get());
|
| +}
|
| +
|
| +} // Content
|
|
|