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

Unified Diff: chrome/browser/dom_ui/web_ui_theme_source_unittest.cc

Issue 6480046: WebUI: Change more references to WebUI in dom_ui directory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/dom_ui/web_ui_handler_browsertest.cc ('k') | chrome/browser/dom_ui/web_ui_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/dom_ui/web_ui_theme_source_unittest.cc
diff --git a/chrome/browser/dom_ui/web_ui_theme_source_unittest.cc b/chrome/browser/dom_ui/web_ui_theme_source_unittest.cc
index 912d76c76b838a6cc2c91b49f832cbd7ac824688..5d9b3cda03d158093cb23f393383ce5a597d73f2 100644
--- a/chrome/browser/dom_ui/web_ui_theme_source_unittest.cc
+++ b/chrome/browser/dom_ui/web_ui_theme_source_unittest.cc
@@ -33,9 +33,9 @@ class MockThemeSource : public WebUIThemeSource {
~MockThemeSource() {}
};
-class DOMUISourcesTest : public testing::Test {
+class WebUISourcesTest : public testing::Test {
public:
- DOMUISourcesTest() : ui_thread_(BrowserThread::UI, MessageLoop::current()) {}
+ WebUISourcesTest() : ui_thread_(BrowserThread::UI, MessageLoop::current()) {}
TestingProfile* profile() const { return profile_.get(); }
MockThemeSource* theme_source() const { return theme_source_.get(); }
@@ -58,13 +58,13 @@ class DOMUISourcesTest : public testing::Test {
scoped_refptr<MockThemeSource> theme_source_;
};
-TEST_F(DOMUISourcesTest, ThemeSourceMimeTypes) {
+TEST_F(WebUISourcesTest, ThemeSourceMimeTypes) {
EXPECT_EQ(theme_source()->GetMimeType("css/newtab.css"), "text/css");
EXPECT_EQ(theme_source()->GetMimeType("css/newtab.css?foo"), "text/css");
EXPECT_EQ(theme_source()->GetMimeType("WRONGURL"), "image/png");
}
-TEST_F(DOMUISourcesTest, ThemeSourceImages) {
+TEST_F(WebUISourcesTest, ThemeSourceImages) {
// We used to PNGEncode the images ourselves, but encoder differences
// invalidated that. We now just check that the image exists.
theme_source()->StartDataRequest("IDR_THEME_FRAME_INCOGNITO", true, 1);
@@ -77,7 +77,7 @@ TEST_F(DOMUISourcesTest, ThemeSourceImages) {
EXPECT_GT(theme_source()->result_data_size_, min);
}
-TEST_F(DOMUISourcesTest, ThemeSourceCSS) {
+TEST_F(WebUISourcesTest, ThemeSourceCSS) {
BrowserThread io_thread(BrowserThread::IO, MessageLoop::current());
// Generating the test data for the NTP CSS would just involve copying the
// method, or being super brittle and hard-coding the result (requiring
« no previous file with comments | « chrome/browser/dom_ui/web_ui_handler_browsertest.cc ('k') | chrome/browser/dom_ui/web_ui_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698