OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 <stddef.h> |
| 6 |
| 7 #include "base/macros.h" |
5 #include "base/strings/string_split.h" | 8 #include "base/strings/string_split.h" |
6 #include "build/build_config.h" | 9 #include "build/build_config.h" |
7 #include "media/base/mime_util.h" | 10 #include "media/base/mime_util.h" |
8 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
9 | 12 |
10 namespace media { | 13 namespace media { |
11 | 14 |
12 TEST(MimeUtilTest, CommonMediaMimeType) { | 15 TEST(MimeUtilTest, CommonMediaMimeType) { |
13 EXPECT_TRUE(IsSupportedMediaMimeType("audio/webm")); | 16 EXPECT_TRUE(IsSupportedMediaMimeType("audio/webm")); |
14 EXPECT_TRUE(IsSupportedMediaMimeType("video/webm")); | 17 EXPECT_TRUE(IsSupportedMediaMimeType("video/webm")); |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 | 104 |
102 // Test without stripping the codec type. | 105 // Test without stripping the codec type. |
103 std::vector<std::string> codecs_out; | 106 std::vector<std::string> codecs_out; |
104 ParseCodecString("avc1.42E01E, mp4a.40.2", &codecs_out, false); | 107 ParseCodecString("avc1.42E01E, mp4a.40.2", &codecs_out, false); |
105 ASSERT_EQ(2u, codecs_out.size()); | 108 ASSERT_EQ(2u, codecs_out.size()); |
106 EXPECT_EQ("avc1.42E01E", codecs_out[0]); | 109 EXPECT_EQ("avc1.42E01E", codecs_out[0]); |
107 EXPECT_EQ("mp4a.40.2", codecs_out[1]); | 110 EXPECT_EQ("mp4a.40.2", codecs_out[1]); |
108 } | 111 } |
109 | 112 |
110 } // namespace media | 113 } // namespace media |
OLD | NEW |