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" | |
6 #include "net/base/data_url.h" | 5 #include "net/base/data_url.h" |
7 #include "testing/gtest/include/gtest/gtest.h" | 6 #include "testing/gtest/include/gtest/gtest.h" |
8 #include "url/gurl.h" | 7 #include "url/gurl.h" |
9 | 8 |
10 namespace net { | 9 namespace net { |
11 | 10 |
12 namespace { | 11 namespace { |
13 | 12 |
14 struct ParseTestData { | 13 struct ParseTestData { |
15 const char* url; | 14 const char* url; |
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
235 EXPECT_EQ(ok, tests[i].is_valid); | 234 EXPECT_EQ(ok, tests[i].is_valid); |
236 if (tests[i].is_valid) { | 235 if (tests[i].is_valid) { |
237 EXPECT_EQ(tests[i].mime_type, mime_type); | 236 EXPECT_EQ(tests[i].mime_type, mime_type); |
238 EXPECT_EQ(tests[i].charset, charset); | 237 EXPECT_EQ(tests[i].charset, charset); |
239 EXPECT_EQ(tests[i].data, data); | 238 EXPECT_EQ(tests[i].data, data); |
240 } | 239 } |
241 } | 240 } |
242 } | 241 } |
243 | 242 |
244 } // namespace net | 243 } // namespace net |
OLD | NEW |