OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "base/string_util.h" | 5 #include "base/strings/string_util.h" |
6 #include "media/base/decoder_buffer.h" | 6 #include "media/base/decoder_buffer.h" |
7 #include "testing/gtest/include/gtest/gtest.h" | 7 #include "testing/gtest/include/gtest/gtest.h" |
8 | 8 |
9 namespace media { | 9 namespace media { |
10 | 10 |
11 TEST(DecoderBufferTest, Constructors) { | 11 TEST(DecoderBufferTest, Constructors) { |
12 scoped_refptr<DecoderBuffer> buffer(new DecoderBuffer(0)); | 12 scoped_refptr<DecoderBuffer> buffer(new DecoderBuffer(0)); |
13 EXPECT_TRUE(buffer->GetData()); | 13 EXPECT_TRUE(buffer->GetData()); |
14 EXPECT_EQ(0, buffer->GetDataSize()); | 14 EXPECT_EQ(0, buffer->GetDataSize()); |
15 EXPECT_FALSE(buffer->IsEndOfStream()); | 15 EXPECT_FALSE(buffer->IsEndOfStream()); |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 ASSERT_EQ(0, memcmp(read_only_data, kData, kDataSize)); | 91 ASSERT_EQ(0, memcmp(read_only_data, kData, kDataSize)); |
92 EXPECT_FALSE(buffer->IsEndOfStream()); | 92 EXPECT_FALSE(buffer->IsEndOfStream()); |
93 } | 93 } |
94 | 94 |
95 TEST(DecoderBufferTest, GetDecryptConfig) { | 95 TEST(DecoderBufferTest, GetDecryptConfig) { |
96 scoped_refptr<DecoderBuffer> buffer(new DecoderBuffer(0)); | 96 scoped_refptr<DecoderBuffer> buffer(new DecoderBuffer(0)); |
97 EXPECT_FALSE(buffer->GetDecryptConfig()); | 97 EXPECT_FALSE(buffer->GetDecryptConfig()); |
98 } | 98 } |
99 | 99 |
100 } // namespace media | 100 } // namespace media |
OLD | NEW |