Re-subimission of https://codereview.chromium.org/1041213003/
[chromium-blink-merge.git] / content / child / simple_webmimeregistry_impl_unittest.cc
blob40d3bd5f06c18252a2959a24b73c55bea9e5fd3d
1 // Copyright 2014 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.
5 // Tests for SimpleWebMimeRegistryImpl.
7 #include "content/child/simple_webmimeregistry_impl.h"
9 #include "testing/gtest/include/gtest/gtest.h"
10 #include "third_party/WebKit/public/platform/WebString.h"
12 TEST(SimpleWebMimeRegistryImpl, mimeTypeTest)
14 content::SimpleWebMimeRegistryImpl registry;
16 EXPECT_TRUE(registry.supportsImagePrefixedMIMEType("image/gif"));
17 EXPECT_TRUE(registry.supportsImagePrefixedMIMEType("image/svg+xml"));
18 EXPECT_FALSE(registry.supportsImageMIMEType("image/svg+xml"));
19 EXPECT_TRUE(registry.supportsImageMIMEType("image/gif"));