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

Side by Side Diff: chrome/browser/ui/webui/chrome_url_data_manager_browsertest.cc

Issue 24733003: Update defaults for InstantExtended. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 7 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/common/url_constants.h" 5 #include "chrome/common/url_constants.h"
6 #include "chrome/test/base/in_process_browser_test.h" 6 #include "chrome/test/base/in_process_browser_test.h"
7 #include "chrome/test/base/ui_test_utils.h" 7 #include "chrome/test/base/ui_test_utils.h"
8 #include "content/public/browser/navigation_details.h" 8 #include "content/public/browser/navigation_details.h"
9 #include "content/public/browser/notification_registrar.h" 9 #include "content/public/browser/notification_registrar.h"
10 #include "content/public/browser/notification_service.h" 10 #include "content/public/browser/notification_service.h"
(...skipping 29 matching lines...) Expand all
40 int got_navigation_; 40 int got_navigation_;
41 int http_status_code_; 41 int http_status_code_;
42 42
43 DISALLOW_COPY_AND_ASSIGN(NavigationNotificationObserver); 43 DISALLOW_COPY_AND_ASSIGN(NavigationNotificationObserver);
44 }; 44 };
45 45
46 } // namespace 46 } // namespace
47 47
48 typedef InProcessBrowserTest ChromeURLDataManagerTest; 48 typedef InProcessBrowserTest ChromeURLDataManagerTest;
49 49
50 // Makes sure navigating to the new tab page results in a http status code 50 // Makes sure navigating to the omnibox page results in a http status code
51 // of 200. 51 // of 200.
52 IN_PROC_BROWSER_TEST_F(ChromeURLDataManagerTest, 200) { 52 IN_PROC_BROWSER_TEST_F(ChromeURLDataManagerTest, 200) {
53 NavigationNotificationObserver observer; 53 NavigationNotificationObserver observer;
54 ui_test_utils::NavigateToURL(browser(), GURL(chrome::kChromeUINewTabURL)); 54 ui_test_utils::NavigateToURL(browser(), GURL(chrome::kChromeUIOmniboxURL));
55 EXPECT_TRUE(observer.got_navigation()); 55 EXPECT_TRUE(observer.got_navigation());
56 EXPECT_EQ(200, observer.http_status_code()); 56 EXPECT_EQ(200, observer.http_status_code());
57 } 57 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698