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

Side by Side Diff: chrome/browser/ui/toolbar/toolbar_model_unittest.cc

Issue 8276022: Move url_constants.h to content/public/common. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "chrome/browser/ui/toolbar/toolbar_model.h" 5 #include "chrome/browser/ui/toolbar/toolbar_model.h"
6 6
7 #include "base/utf_string_conversions.h" 7 #include "base/utf_string_conversions.h"
8 #include "chrome/browser/ui/browser.h" 8 #include "chrome/browser/ui/browser.h"
9 #include "chrome/browser/ui/toolbar/toolbar_model.h" 9 #include "chrome/browser/ui/toolbar/toolbar_model.h"
10 #include "chrome/test/base/browser_with_test_window_test.h" 10 #include "chrome/test/base/browser_with_test_window_test.h"
11 #include "content/browser/tab_contents/tab_contents.h" 11 #include "content/browser/tab_contents/tab_contents.h"
12 #include "content/common/url_constants.h" 12 #include "content/public/common/url_constants.h"
13 13
14 class ToolbarModelTest : public BrowserWithTestWindowTest { 14 class ToolbarModelTest : public BrowserWithTestWindowTest {
15 public: 15 public:
16 ToolbarModelTest() {} 16 ToolbarModelTest() {}
17 17
18 protected: 18 protected:
19 void NavigateAndCheckText(const std::string& url, 19 void NavigateAndCheckText(const std::string& url,
20 const std::string& expected_text, 20 const std::string& expected_text,
21 bool should_display) { 21 bool should_display) {
22 TabContents* contents = browser()->GetTabContentsAt(0); 22 TabContents* contents = browser()->GetTabContentsAt(0);
(...skipping 19 matching lines...) Expand all
42 AddTab(browser(), GURL(chrome::kAboutBlankURL)); 42 AddTab(browser(), GURL(chrome::kAboutBlankURL));
43 43
44 NavigateAndCheckText("view-source:http://www.google.com", 44 NavigateAndCheckText("view-source:http://www.google.com",
45 "view-source:www.google.com", true); 45 "view-source:www.google.com", true);
46 NavigateAndCheckText("view-source:chrome://newtab/", 46 NavigateAndCheckText("view-source:chrome://newtab/",
47 "view-source:chrome://newtab", true); 47 "view-source:chrome://newtab", true);
48 NavigateAndCheckText("chrome-extension://monkey/balls.html", "", false); 48 NavigateAndCheckText("chrome-extension://monkey/balls.html", "", false);
49 NavigateAndCheckText("chrome://newtab/", "", false); 49 NavigateAndCheckText("chrome://newtab/", "", false);
50 NavigateAndCheckText(chrome::kAboutBlankURL, chrome::kAboutBlankURL, true); 50 NavigateAndCheckText(chrome::kAboutBlankURL, chrome::kAboutBlankURL, true);
51 } 51 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698