1fa7767c5Sopenharmony_ci/* 2fa7767c5Sopenharmony_ci * Copyright (c) 2023-2023 Huawei Device Co., Ltd. 3fa7767c5Sopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License"); 4fa7767c5Sopenharmony_ci * you may not use this file except in compliance with the License. 5fa7767c5Sopenharmony_ci * You may obtain a copy of the License at 6fa7767c5Sopenharmony_ci * 7fa7767c5Sopenharmony_ci * http://www.apache.org/licenses/LICENSE-2.0 8fa7767c5Sopenharmony_ci * 9fa7767c5Sopenharmony_ci * Unless required by applicable law or agreed to in writing, software 10fa7767c5Sopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS, 11fa7767c5Sopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12fa7767c5Sopenharmony_ci * See the License for the specific language governing permissions and 13fa7767c5Sopenharmony_ci * limitations under the License. 14fa7767c5Sopenharmony_ci */ 15fa7767c5Sopenharmony_ci 16fa7767c5Sopenharmony_ci#include <gtest/gtest.h> 17fa7767c5Sopenharmony_ci 18fa7767c5Sopenharmony_ci#include "foundation/utils/constants.h" 19fa7767c5Sopenharmony_ciusing namespace testing::ext; 20fa7767c5Sopenharmony_ci 21fa7767c5Sopenharmony_cinamespace OHOS { 22fa7767c5Sopenharmony_cinamespace Media { 23fa7767c5Sopenharmony_cinamespace Test { 24fa7767c5Sopenharmony_ciHWTEST(TestDefs, check_mime_defs, TestSize.Level1) 25fa7767c5Sopenharmony_ci{ 26fa7767c5Sopenharmony_ci ASSERT_STREQ(MEDIA_MIME_AUDIO_MPEG, "audio/mpeg"); 27fa7767c5Sopenharmony_ci ASSERT_STREQ(MEDIA_MIME_AUDIO_FLAC, "audio/flac"); 28fa7767c5Sopenharmony_ci ASSERT_STREQ(MEDIA_MIME_AUDIO_RAW, "audio/raw"); 29fa7767c5Sopenharmony_ci ASSERT_STREQ(MEDIA_MIME_AUDIO_APE, "audio/x-ape"); 30fa7767c5Sopenharmony_ci ASSERT_STREQ(MEDIA_MIME_AUDIO_WAV, "audio/wav"); 31fa7767c5Sopenharmony_ci ASSERT_STREQ(MEDIA_MIME_AUDIO_AAC, "audio/mp4a-latm"); 32fa7767c5Sopenharmony_ci ASSERT_STREQ(MEDIA_MIME_AUDIO_AAC_ADTS, "audio/aac-adts"); 33fa7767c5Sopenharmony_ci ASSERT_STREQ(MEDIA_MIME_AUDIO_VORBIS, "audio/vorbis"); 34fa7767c5Sopenharmony_ci ASSERT_STREQ(MEDIA_MIME_AUDIO_OPUS, "audio/opus"); 35fa7767c5Sopenharmony_ci ASSERT_STREQ(MEDIA_MIME_AUDIO_AC3, "audio/ac3"); 36fa7767c5Sopenharmony_ci ASSERT_STREQ(MEDIA_MIME_AUDIO_EAC3, "audio/eac3"); 37fa7767c5Sopenharmony_ci ASSERT_STREQ(MEDIA_MIME_AUDIO_EAC3_JOC, "audio/eac3-joc"); 38fa7767c5Sopenharmony_ci ASSERT_STREQ(MEDIA_MIME_AUDIO_AC4, "audio/ac4"); 39fa7767c5Sopenharmony_ci ASSERT_STREQ(MEDIA_MIME_AUDIO_WMA, "audio/x-ms-wma"); 40fa7767c5Sopenharmony_ci ASSERT_STREQ(MEDIA_MIME_AUDIO_AMR_NB, "audio/3gpp"); 41fa7767c5Sopenharmony_ci ASSERT_STREQ(MEDIA_MIME_AUDIO_AMR_WB, "audio/amr-wb"); 42fa7767c5Sopenharmony_ci} 43fa7767c5Sopenharmony_ci} // namespace Test 44fa7767c5Sopenharmony_ci} // namespace Media 45fa7767c5Sopenharmony_ci} // namespace OHOS