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

Unified Diff: chrome/test/base/web_ui_browser_test.cc

Issue 1863963004: WebUI: add functional test for text_defaults.css (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comment change Created 4 years, 8 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/chrome_tests.gypi ('k') | chrome/test/data/webui/text_defaults_browsertest.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/base/web_ui_browser_test.cc
diff --git a/chrome/test/base/web_ui_browser_test.cc b/chrome/test/base/web_ui_browser_test.cc
index d3498f14ed6bbea0540580abc8056fe153a3b480..a356b9f365a0e5c7279d8881f94c5d813342f08a 100644
--- a/chrome/test/base/web_ui_browser_test.cc
+++ b/chrome/test/base/web_ui_browser_test.cc
@@ -32,6 +32,7 @@
#include "content/public/browser/web_contents_observer.h"
#include "content/public/browser/web_ui_controller.h"
#include "content/public/browser/web_ui_message_handler.h"
+#include "content/public/common/url_constants.h"
#include "content/public/test/browser_test_utils.h"
#include "content/public/test/test_navigation_observer.h"
#include "net/base/filename_util.h"
@@ -384,6 +385,8 @@ void WebUIBrowserTest::SetUpOnMainThread() {
test_factory_->AddFactoryOverride(GURL(kDummyURL).host(),
mock_provider_.Pointer());
+ test_factory_->AddFactoryOverride(content::kChromeUIResourcesHost,
+ mock_provider_.Pointer());
}
void WebUIBrowserTest::TearDownOnMainThread() {
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/test/data/webui/text_defaults_browsertest.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698