OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "net/base/mime_sniffer.h" | 5 #include "net/base/mime_sniffer.h" |
| 6 |
7 #include "testing/gtest/include/gtest/gtest.h" | 7 #include "testing/gtest/include/gtest/gtest.h" |
8 #include "url/gurl.h" | 8 #include "url/gurl.h" |
9 | 9 |
10 namespace net { | 10 namespace net { |
11 namespace { | 11 namespace { |
12 | 12 |
13 using ::testing::Range; | 13 using ::testing::Range; |
14 using ::testing::Values; | 14 using ::testing::Values; |
15 using ::net::SniffMimeType; // It is shadowed by SniffMimeType(), below. | 15 using ::net::SniffMimeType; // It is shadowed by SniffMimeType(), below. |
16 | 16 |
(...skipping 528 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
545 | 545 |
546 INSTANTIATE_TEST_CASE_P(MimeSnifferControlCodesEdgeCaseTest, | 546 INSTANTIATE_TEST_CASE_P(MimeSnifferControlCodesEdgeCaseTest, |
547 MimeSnifferControlCodesEdgeCaseTest, | 547 MimeSnifferControlCodesEdgeCaseTest, |
548 Values("\x01__", // first byte is binary | 548 Values("\x01__", // first byte is binary |
549 "__\x03", // last byte is binary | 549 "__\x03", // last byte is binary |
550 "_\x02_" // a byte in the middle is binary | 550 "_\x02_" // a byte in the middle is binary |
551 )); | 551 )); |
552 | 552 |
553 } // namespace | 553 } // namespace |
554 } // namespace net | 554 } // namespace net |
OLD | NEW |