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

Side by Side Diff: content/browser/webui/web_ui_data_source_unittest.cc

Issue 12049052: Move core url data manager classes to content. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 11 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698