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

Side by Side Diff: chrome/browser/ui/webui/ntp/most_visited_browsertest.cc

Issue 7600013: ntp4: make default (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix unit test failures Created 9 years, 4 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 "base/command_line.h"
6 #include "base/file_path.h" 5 #include "base/file_path.h"
7 #include "chrome/browser/ui/webui/web_ui_browsertest.h" 6 #include "chrome/browser/ui/webui/web_ui_browsertest.h"
8 #include "chrome/common/chrome_switches.h"
9 #include "chrome/common/url_constants.h" 7 #include "chrome/common/url_constants.h"
10 #include "chrome/test/base/ui_test_utils.h" 8 #include "chrome/test/base/ui_test_utils.h"
11 #include "googleurl/src/gurl.h" 9 #include "googleurl/src/gurl.h"
12 10
13 class MostVisitedWebUITest : public WebUIBrowserTest { 11 class MostVisitedWebUITest : public WebUIBrowserTest {
14 public: 12 public:
15 virtual ~MostVisitedWebUITest() {} 13 virtual ~MostVisitedWebUITest() {}
16 14
17 virtual void SetUpInProcessBrowserTestFixture() { 15 virtual void SetUpInProcessBrowserTestFixture() {
18 WebUIBrowserTest::SetUpInProcessBrowserTestFixture(); 16 WebUIBrowserTest::SetUpInProcessBrowserTestFixture();
19 AddLibrary(FilePath(FILE_PATH_LITERAL("most_visited_page_test.js"))); 17 AddLibrary(FilePath(FILE_PATH_LITERAL("most_visited_page_test.js")));
20 } 18 }
21 19
22 virtual void SetUpCommandLine(CommandLine* command_line) {
23 command_line->AppendSwitch(switches::kNewTabPage4);
24 }
25
26 virtual void SetUpOnMainThread() { 20 virtual void SetUpOnMainThread() {
27 ui_test_utils::NavigateToURL(browser(), GURL(chrome::kChromeUINewTabURL)); 21 ui_test_utils::NavigateToURL(browser(), GURL(chrome::kChromeUINewTabURL));
28 } 22 }
29 }; 23 };
30 24
31 WEB_UI_UNITTEST_F(MostVisitedWebUITest, refreshDataBasic); 25 WEB_UI_UNITTEST_F(MostVisitedWebUITest, refreshDataBasic);
32 WEB_UI_UNITTEST_F(MostVisitedWebUITest, refreshDataOrdering); 26 WEB_UI_UNITTEST_F(MostVisitedWebUITest, refreshDataOrdering);
33 WEB_UI_UNITTEST_F(MostVisitedWebUITest, refreshDataPinning); 27 WEB_UI_UNITTEST_F(MostVisitedWebUITest, refreshDataPinning);
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/ntp/app_launcher_handler.cc ('k') | chrome/browser/ui/webui/ntp/new_tab_page_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698