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

Unified Diff: chrome/browser/devtools/devtools_ui_bindings_unittest.cc

Issue 2607833002: DevTools: move front-end URL handling to DevToolsUIBindingds (Closed)
Patch Set: review comments addressed Created 4 years 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/devtools/devtools_ui_bindings.cc ('k') | chrome/browser/devtools/devtools_window.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/devtools/devtools_ui_bindings_unittest.cc
diff --git a/chrome/browser/ui/webui/devtools_ui_unittest.cc b/chrome/browser/devtools/devtools_ui_bindings_unittest.cc
similarity index 95%
rename from chrome/browser/ui/webui/devtools_ui_unittest.cc
rename to chrome/browser/devtools/devtools_ui_bindings_unittest.cc
index 7cc7585778094d16fd33e463d28bcd12755772a9..f1754a328e21f54830c8222d3bcf4e7c12f334fc 100644
--- a/chrome/browser/ui/webui/devtools_ui_unittest.cc
+++ b/chrome/browser/devtools/devtools_ui_bindings_unittest.cc
@@ -2,13 +2,13 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/browser/ui/webui/devtools_ui.h"
+#include "chrome/browser/devtools/devtools_ui_bindings.h"
#include "testing/gtest/include/gtest/gtest.h"
-class DevToolsUITest : public testing::Test {
+class DevToolsUIBindingsTest : public testing::Test {
};
-TEST_F(DevToolsUITest, SanitizeFrontendURL) {
+TEST_F(DevToolsUIBindingsTest, SanitizeFrontendURL) {
std::vector<std::pair<std::string, std::string>> tests = {
{"random-string",
"chrome-devtools://devtools/"},
@@ -96,7 +96,7 @@ TEST_F(DevToolsUITest, SanitizeFrontendURL) {
for (const auto& pair : tests) {
GURL url = GURL(pair.first);
- url = DevToolsUI::SanitizeFrontendURL(url);
+ url = DevToolsUIBindings::SanitizeFrontendURL(url);
EXPECT_EQ(pair.second, url.spec());
}
}
« no previous file with comments | « chrome/browser/devtools/devtools_ui_bindings.cc ('k') | chrome/browser/devtools/devtools_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698