| 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/bind.h" | 5 #include "base/bind.h" |
| 6 #include "base/memory/ref_counted_memory.h" | 6 #include "base/memory/ref_counted_memory.h" |
| 7 #include "base/utf_string_conversions.h" | 7 #include "base/utf_string_conversions.h" |
| 8 #include "chrome/browser/ui/webui/chrome_web_ui_data_source.h" | 8 #include "chrome/browser/ui/webui/chrome_web_ui_data_source.h" |
| 9 #include "grit/generated_resources.h" | 9 #include "grit/generated_resources.h" |
| 10 #include "grit/webui_resources.h" | 10 #include "grit/webui_resources.h" |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 const char* js = "application/javascript"; | 110 const char* js = "application/javascript"; |
| 111 EXPECT_EQ(source()->GetMimeType(""), html); | 111 EXPECT_EQ(source()->GetMimeType(""), html); |
| 112 EXPECT_EQ(source()->GetMimeType("foo"), html); | 112 EXPECT_EQ(source()->GetMimeType("foo"), html); |
| 113 EXPECT_EQ(source()->GetMimeType("foo.html"), html); | 113 EXPECT_EQ(source()->GetMimeType("foo.html"), html); |
| 114 EXPECT_EQ(source()->GetMimeType(".js"), js); | 114 EXPECT_EQ(source()->GetMimeType(".js"), js); |
| 115 EXPECT_EQ(source()->GetMimeType("foo.js"), js); | 115 EXPECT_EQ(source()->GetMimeType("foo.js"), js); |
| 116 EXPECT_EQ(source()->GetMimeType("js"), html); | 116 EXPECT_EQ(source()->GetMimeType("js"), html); |
| 117 EXPECT_EQ(source()->GetMimeType("foojs"), html); | 117 EXPECT_EQ(source()->GetMimeType("foojs"), html); |
| 118 EXPECT_EQ(source()->GetMimeType("foo.jsp"), html); | 118 EXPECT_EQ(source()->GetMimeType("foo.jsp"), html); |
| 119 } | 119 } |
| OLD | NEW |