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

Unified Diff: chrome/browser/ui/search/search_delegate_unittest.cc

Issue 11428149: Alternate NTP: Move bookmark bar to bottom (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address review comments Created 8 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/search/search.cc ('k') | chrome/browser/ui/search/search_ui.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/search/search_delegate_unittest.cc
diff --git a/chrome/browser/ui/search/search_delegate_unittest.cc b/chrome/browser/ui/search/search_delegate_unittest.cc
index f5b18b07e27d42852f2ba8ec35b09dd83a5e0a05..45a5442a5abc1bef6c9dedfd007cbc07a8d32d5e 100644
--- a/chrome/browser/ui/search/search_delegate_unittest.cc
+++ b/chrome/browser/ui/search/search_delegate_unittest.cc
@@ -2,13 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "base/command_line.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/search/search.h"
#include "chrome/browser/ui/search/search_model.h"
#include "chrome/browser/ui/search/search_tab_helper.h"
#include "chrome/browser/ui/tabs/tab_strip_model.h"
-#include "chrome/common/chrome_switches.h"
#include "chrome/test/base/browser_with_test_window_test.h"
namespace chrome {
@@ -19,12 +17,7 @@ typedef BrowserWithTestWindowTest SearchDelegateTest;
// Test the propagation of search "mode" changes from the tab's search model to
// the browser's search model.
TEST_F(SearchDelegateTest, SearchModel) {
- CommandLine* command_line = CommandLine::ForCurrentProcess();
- command_line->AppendSwitch(switches::kEnableInstantExtendedAPI);
-
- // Avoid these tests on branded Chrome where channel is set to CHANNEL_STABLE.
- if (!chrome::search::IsInstantExtendedAPIEnabled(profile()))
- return;
+ chrome::search::EnableInstantExtendedAPIForTesting();
// Initial state.
EXPECT_TRUE(browser()->search_model()->mode().is_default());
« no previous file with comments | « chrome/browser/ui/search/search.cc ('k') | chrome/browser/ui/search/search_ui.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698