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

Side by Side Diff: content/renderer/media/android/stream_texture_wrapper_impl_unittest.cc

Issue 2480523006: Enable texture copy for webiew (Closed)
Patch Set: Addressed comments. Created 4 years, 1 month 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 unified diff | Download patch
OLDNEW
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
OLDNEW
« no previous file with comments | « content/renderer/media/android/stream_texture_wrapper_impl.cc ('k') | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698