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

Side by Side Diff: media/base/mime_util_unittest.cc

Issue 1534273002: Switch to standard integer types in media/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more Created 5 years 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 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 "base/basictypes.h"
6 #include "base/strings/string_split.h" 5 #include "base/strings/string_split.h"
7 #include "build/build_config.h" 6 #include "build/build_config.h"
8 #include "media/base/mime_util.h" 7 #include "media/base/mime_util.h"
9 #include "testing/gtest/include/gtest/gtest.h" 8 #include "testing/gtest/include/gtest/gtest.h"
10 9
11 namespace media { 10 namespace media {
12 11
13 TEST(MimeUtilTest, CommonMediaMimeType) { 12 TEST(MimeUtilTest, CommonMediaMimeType) {
14 EXPECT_TRUE(IsSupportedMediaMimeType("audio/webm")); 13 EXPECT_TRUE(IsSupportedMediaMimeType("audio/webm"));
15 EXPECT_TRUE(IsSupportedMediaMimeType("video/webm")); 14 EXPECT_TRUE(IsSupportedMediaMimeType("video/webm"));
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 101
103 // Test without stripping the codec type. 102 // Test without stripping the codec type.
104 std::vector<std::string> codecs_out; 103 std::vector<std::string> codecs_out;
105 ParseCodecString("avc1.42E01E, mp4a.40.2", &codecs_out, false); 104 ParseCodecString("avc1.42E01E, mp4a.40.2", &codecs_out, false);
106 ASSERT_EQ(2u, codecs_out.size()); 105 ASSERT_EQ(2u, codecs_out.size());
107 EXPECT_EQ("avc1.42E01E", codecs_out[0]); 106 EXPECT_EQ("avc1.42E01E", codecs_out[0]);
108 EXPECT_EQ("mp4a.40.2", codecs_out[1]); 107 EXPECT_EQ("mp4a.40.2", codecs_out[1]);
109 } 108 }
110 109
111 } // namespace media 110 } // namespace media
OLDNEW
« no previous file with comments | « media/base/mime_util.cc ('k') | media/base/pipeline_status.h » ('j') | media/cdm/stub/stub_cdm.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698