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

Unified Diff: content/child/simple_webmimeregistry_impl_unittest.cc

Issue 2444873002: Move WebMIMERegistry impl from //content to blink:platform/network/mime (Closed)
Patch Set: remove indirection Created 4 years, 2 months 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 side-by-side diff with in-line comments
Download patch
Index: content/child/simple_webmimeregistry_impl_unittest.cc
diff --git a/content/child/simple_webmimeregistry_impl_unittest.cc b/content/child/simple_webmimeregistry_impl_unittest.cc
deleted file mode 100644
index 0f56f6260ad913395c24c986736561da626a5955..0000000000000000000000000000000000000000
--- a/content/child/simple_webmimeregistry_impl_unittest.cc
+++ /dev/null
@@ -1,32 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-// Tests for SimpleWebMimeRegistryImpl.
-
-#include "content/child/simple_webmimeregistry_impl.h"
-
-#include "testing/gtest/include/gtest/gtest.h"
-#include "third_party/WebKit/public/platform/WebString.h"
-
-TEST(SimpleWebMimeRegistryImpl, mimeTypeTest)
-{
- content::SimpleWebMimeRegistryImpl registry;
-
- EXPECT_TRUE(registry.supportsImagePrefixedMIMEType("image/gif"));
- EXPECT_TRUE(registry.supportsImagePrefixedMIMEType("image/svg+xml"));
- EXPECT_FALSE(registry.supportsImageMIMEType("image/svg+xml"));
- EXPECT_TRUE(registry.supportsImageMIMEType("image/gif"));
-}
-
-TEST(SimpleWebMimeRegistryImpl, PluginMimeTypes) {
- content::SimpleWebMimeRegistryImpl registry;
-
- // Since we've removed MIME type guessing based on plugin-declared file
- // extensions, ensure that the SimpleWebMimeRegistry already contains
- // the extensions used by common PPAPI plugins.
- EXPECT_EQ("application/pdf",
- registry.wellKnownMimeTypeForExtension("pdf").utf8());
- EXPECT_EQ("application/x-shockwave-flash",
- registry.wellKnownMimeTypeForExtension("swf").utf8());
-}

Powered by Google App Engine
This is Rietveld 408576698