OLD | NEW |
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/files/file_path.h" | 5 #include "base/files/file_path.h" |
6 #include "chrome/common/url_constants.h" | 6 #include "chrome/common/url_constants.h" |
7 #include "chrome/test/base/ui_test_utils.h" | 7 #include "chrome/test/base/ui_test_utils.h" |
8 #include "chrome/test/base/web_ui_browser_test.h" | 8 #include "chrome/test/base/web_ui_browser_test.h" |
9 #include "url/gurl.h" | 9 #include "url/gurl.h" |
10 | 10 |
11 class MostVisitedWebUITest : public WebUIBrowserTest { | 11 class MostVisitedWebUITest : public WebUIBrowserTest { |
12 public: | 12 public: |
13 virtual ~MostVisitedWebUITest() {} | 13 virtual ~MostVisitedWebUITest() {} |
14 | 14 |
15 virtual void SetUpInProcessBrowserTestFixture() OVERRIDE { | 15 virtual void SetUpInProcessBrowserTestFixture() override { |
16 WebUIBrowserTest::SetUpInProcessBrowserTestFixture(); | 16 WebUIBrowserTest::SetUpInProcessBrowserTestFixture(); |
17 AddLibrary(base::FilePath(FILE_PATH_LITERAL("most_visited_page_test.js"))); | 17 AddLibrary(base::FilePath(FILE_PATH_LITERAL("most_visited_page_test.js"))); |
18 } | 18 } |
19 | 19 |
20 virtual void SetUpOnMainThread() OVERRIDE { | 20 virtual void SetUpOnMainThread() override { |
21 WebUIBrowserTest::SetUpOnMainThread(); | 21 WebUIBrowserTest::SetUpOnMainThread(); |
22 ui_test_utils::NavigateToURL(browser(), GURL(chrome::kChromeUINewTabURL)); | 22 ui_test_utils::NavigateToURL(browser(), GURL(chrome::kChromeUINewTabURL)); |
23 } | 23 } |
24 }; | 24 }; |
25 | 25 |
26 // TODO(samarth): delete along with the rest of the NTP4 code. | 26 // TODO(samarth): delete along with the rest of the NTP4 code. |
27 WEB_UI_UNITTEST_F(MostVisitedWebUITest, DISABLED_refreshDataBasic); | 27 WEB_UI_UNITTEST_F(MostVisitedWebUITest, DISABLED_refreshDataBasic); |
28 WEB_UI_UNITTEST_F(MostVisitedWebUITest, DISABLED_refreshDataOrdering); | 28 WEB_UI_UNITTEST_F(MostVisitedWebUITest, DISABLED_refreshDataOrdering); |
29 WEB_UI_UNITTEST_F(MostVisitedWebUITest, DISABLED_refreshDataPinning); | 29 WEB_UI_UNITTEST_F(MostVisitedWebUITest, DISABLED_refreshDataPinning); |
OLD | NEW |