OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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" | 5 #include "base/basictypes.h" |
6 #include "base/string_split.h" | 6 #include "base/strings/string_split.h" |
7 #include "base/utf_string_conversions.h" | 7 #include "base/utf_string_conversions.h" |
8 #include "net/base/mime_util.h" | 8 #include "net/base/mime_util.h" |
9 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
10 | 10 |
11 namespace net { | 11 namespace net { |
12 | 12 |
13 TEST(MimeUtilTest, ExtensionTest) { | 13 TEST(MimeUtilTest, ExtensionTest) { |
14 const struct { | 14 const struct { |
15 const base::FilePath::CharType* extension; | 15 const base::FilePath::CharType* extension; |
16 const char* mime_type; | 16 const char* mime_type; |
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
290 EXPECT_EQ(CERTIFICATE_MIME_TYPE_UNKNOWN, | 290 EXPECT_EQ(CERTIFICATE_MIME_TYPE_UNKNOWN, |
291 GetCertificateMimeTypeForMimeType("application/x-x509-ca-cert")); | 291 GetCertificateMimeTypeForMimeType("application/x-x509-ca-cert")); |
292 EXPECT_EQ(CERTIFICATE_MIME_TYPE_UNKNOWN, | 292 EXPECT_EQ(CERTIFICATE_MIME_TYPE_UNKNOWN, |
293 GetCertificateMimeTypeForMimeType("application/x-pkcs12")); | 293 GetCertificateMimeTypeForMimeType("application/x-pkcs12")); |
294 #endif | 294 #endif |
295 EXPECT_EQ(CERTIFICATE_MIME_TYPE_UNKNOWN, | 295 EXPECT_EQ(CERTIFICATE_MIME_TYPE_UNKNOWN, |
296 GetCertificateMimeTypeForMimeType("text/plain")); | 296 GetCertificateMimeTypeForMimeType("text/plain")); |
297 } | 297 } |
298 | 298 |
299 } // namespace net | 299 } // namespace net |
OLD | NEW |