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

Side by Side Diff: chrome/browser/ui/search/instant_extended_manual_interactive_uitest.cc

Issue 1172183002: Move StartsWith[ASCII] to base namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@string_util3
Patch Set: merger Created 5 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 unified diff | Download patch
« no previous file with comments | « chrome/browser/ui/prefs/prefs_tab_helper.cc ('k') | chrome/browser/ui/webui/devtools_ui.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/strings/string_util.h" 5 #include "base/strings/string_util.h"
6 #include "chrome/browser/chrome_notification_types.h" 6 #include "chrome/browser/chrome_notification_types.h"
7 #include "chrome/browser/search/instant_service.h" 7 #include "chrome/browser/search/instant_service.h"
8 #include "chrome/browser/search/instant_service_factory.h" 8 #include "chrome/browser/search/instant_service_factory.h"
9 #include "chrome/browser/search/search.h" 9 #include "chrome/browser/search/search.h"
10 #include "chrome/browser/task_manager/task_manager.h" 10 #include "chrome/browser/task_manager/task_manager.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 } 51 }
52 52
53 ~InstantExtendedManualTest() override { 53 ~InstantExtendedManualTest() override {
54 scoped_host_resolver_proc_.reset(); 54 scoped_host_resolver_proc_.reset();
55 host_resolver_proc_ = NULL; 55 host_resolver_proc_ = NULL;
56 } 56 }
57 57
58 void SetUpOnMainThread() override { 58 void SetUpOnMainThread() override {
59 const testing::TestInfo* const test_info = 59 const testing::TestInfo* const test_info =
60 testing::UnitTest::GetInstance()->current_test_info(); 60 testing::UnitTest::GetInstance()->current_test_info();
61 ASSERT_TRUE(StartsWithASCII(test_info->name(), "MANUAL_", true) || 61 ASSERT_TRUE(base::StartsWithASCII(test_info->name(), "MANUAL_", true) ||
62 StartsWithASCII(test_info->name(), "DISABLED_", true)); 62 base::StartsWithASCII(test_info->name(), "DISABLED_", true));
63 // Make IsOffline() return false so we don't try to use the local NTP. 63 // Make IsOffline() return false so we don't try to use the local NTP.
64 disable_network_change_notifier_.reset( 64 disable_network_change_notifier_.reset(
65 new net::NetworkChangeNotifier::DisableForTest()); 65 new net::NetworkChangeNotifier::DisableForTest());
66 } 66 }
67 67
68 void TearDownOnMainThread() override { 68 void TearDownOnMainThread() override {
69 disable_network_change_notifier_.reset(); 69 disable_network_change_notifier_.reset();
70 } 70 }
71 71
72 protected: 72 protected:
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 EXPECT_EQ("test", GetOmniboxText()); 138 EXPECT_EQ("test", GetOmniboxText());
139 EXPECT_EQ(OMNIBOX_FOCUS_VISIBLE, omnibox()->model()->focus_state()); 139 EXPECT_EQ(OMNIBOX_FOCUS_VISIBLE, omnibox()->model()->focus_state());
140 140
141 // Pressing enter should search for [test]. 141 // Pressing enter should search for [test].
142 const base::string16& search_title = 142 const base::string16& search_title =
143 base::ASCIIToUTF16("test - Google Search"); 143 base::ASCIIToUTF16("test - Google Search");
144 content::TitleWatcher title_watcher(active_tab, search_title); 144 content::TitleWatcher title_watcher(active_tab, search_title);
145 PressEnterAndWaitForNavigation(); 145 PressEnterAndWaitForNavigation();
146 EXPECT_EQ(search_title, title_watcher.WaitAndGetTitle()); 146 EXPECT_EQ(search_title, title_watcher.WaitAndGetTitle());
147 } 147 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/prefs/prefs_tab_helper.cc ('k') | chrome/browser/ui/webui/devtools_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698