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

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

Issue 2136103010: Add StreamTextureWrapper/StreamTextureWrapperImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adding CONTENT_EXPORT to StreamTextureFactory Created 4 years, 4 months 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
« no previous file with comments | « content/renderer/media/android/stream_texture_wrapper_impl.cc ('k') | media/blink/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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
OLDNEW
« no previous file with comments | « content/renderer/media/android/stream_texture_wrapper_impl.cc ('k') | media/blink/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698