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

Unified Diff: chrome/browser/ui/toolbar/toolbar_model_unittest.cc

Issue 325443002: Move about://-related constants from //content to //url (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Android ifx Created 6 years, 6 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
Index: chrome/browser/ui/toolbar/toolbar_model_unittest.cc
diff --git a/chrome/browser/ui/toolbar/toolbar_model_unittest.cc b/chrome/browser/ui/toolbar/toolbar_model_unittest.cc
index 80ad61fd71a61d18413bdf4b122c41fe4b10dfde..1500300df10f2ac92f613414b256b46144e36cfe 100644
--- a/chrome/browser/ui/toolbar/toolbar_model_unittest.cc
+++ b/chrome/browser/ui/toolbar/toolbar_model_unittest.cc
@@ -65,9 +65,9 @@ struct TestItem {
true
},
{
- GURL(content::kAboutBlankURL),
- base::ASCIIToUTF16(content::kAboutBlankURL),
- base::ASCIIToUTF16(content::kAboutBlankURL),
+ GURL(url::kAboutBlankURL),
+ base::ASCIIToUTF16(url::kAboutBlankURL),
+ base::ASCIIToUTF16(url::kAboutBlankURL),
base::string16(),
false,
true
@@ -253,7 +253,7 @@ PopupToolbarModelTest::~PopupToolbarModelTest() {
// Test that we only replace URLs when query extraction and URL replacement
// are enabled.
TEST_F(ToolbarModelTest, ShouldDisplayURL_QueryExtraction) {
- AddTab(browser(), GURL(content::kAboutBlankURL));
+ AddTab(browser(), GURL(url::kAboutBlankURL));
// Before we enable instant extended, query extraction is disabled.
EXPECT_FALSE(chrome::IsQueryExtractionEnabled())
@@ -290,7 +290,7 @@ TEST_F(ToolbarModelTest, ShouldDisplayURL_QueryExtraction) {
// enabled.
TEST_F(ToolbarModelTest, ShouldDisplayURL_OriginChip) {
EnableOriginChipFieldTrial();
- AddTab(browser(), GURL(content::kAboutBlankURL));
+ AddTab(browser(), GURL(url::kAboutBlankURL));
// Check each case with the origin chip enabled but query extraction disabled.
EXPECT_TRUE(chrome::ShouldDisplayOriginChip());
@@ -325,7 +325,7 @@ TEST_F(ToolbarModelTest, ShouldDisplayURL_OriginChip) {
// Verify that search terms are extracted while the page is loading.
TEST_F(ToolbarModelTest, SearchTermsWhileLoading) {
chrome::EnableQueryExtractionForTesting();
- AddTab(browser(), GURL(content::kAboutBlankURL));
+ AddTab(browser(), GURL(url::kAboutBlankURL));
// While loading, we should be willing to extract search terms.
content::NavigationController* controller =
@@ -351,7 +351,7 @@ TEST_F(ToolbarModelTest, SearchTermsWhileLoading) {
// secure.
TEST_F(ToolbarModelTest, GoogleBaseURL) {
chrome::EnableQueryExtractionForTesting();
- AddTab(browser(), GURL(content::kAboutBlankURL));
+ AddTab(browser(), GURL(url::kAboutBlankURL));
// If the Google base URL wasn't specified on the command line, then if it's
// HTTP, we should not extract search terms.
@@ -375,7 +375,7 @@ TEST_F(ToolbarModelTest, GoogleBaseURL) {
// ignores whether the origin chip is enabled and only respects the query
// extraction flag.
TEST_F(PopupToolbarModelTest, ShouldDisplayURL) {
- AddTab(browser(), GURL(content::kAboutBlankURL));
+ AddTab(browser(), GURL(url::kAboutBlankURL));
// Check with neither query extraction nor the origin chip enabled.
EXPECT_FALSE(chrome::ShouldDisplayOriginChip());

Powered by Google App Engine
This is Rietveld 408576698