| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/browser/instant/search.h" |
| 5 #include "chrome/browser/ui/browser.h" | 6 #include "chrome/browser/ui/browser.h" |
| 6 #include "chrome/browser/ui/search/search.h" | |
| 7 #include "chrome/browser/ui/search/search_model.h" | 7 #include "chrome/browser/ui/search/search_model.h" |
| 8 #include "chrome/browser/ui/search/search_tab_helper.h" | 8 #include "chrome/browser/ui/search/search_tab_helper.h" |
| 9 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 9 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
| 10 #include "chrome/test/base/browser_with_test_window_test.h" | 10 #include "chrome/test/base/browser_with_test_window_test.h" |
| 11 | 11 |
| 12 namespace chrome { | 12 namespace chrome { |
| 13 namespace search { | 13 namespace search { |
| 14 | 14 |
| 15 typedef BrowserWithTestWindowTest SearchDelegateTest; | 15 typedef BrowserWithTestWindowTest SearchDelegateTest; |
| 16 | 16 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 41 | 41 |
| 42 // The first tab is not active so changes should not propagate. | 42 // The first tab is not active so changes should not propagate. |
| 43 web_contents = browser()->tab_strip_model()->GetWebContentsAt(0); | 43 web_contents = browser()->tab_strip_model()->GetWebContentsAt(0); |
| 44 chrome::search::SearchTabHelper::FromWebContents(web_contents)->model()-> | 44 chrome::search::SearchTabHelper::FromWebContents(web_contents)->model()-> |
| 45 SetMode(Mode(Mode::MODE_NTP, Mode::ORIGIN_NTP)); | 45 SetMode(Mode(Mode::MODE_NTP, Mode::ORIGIN_NTP)); |
| 46 EXPECT_TRUE(browser()->search_model()->mode().is_search()); | 46 EXPECT_TRUE(browser()->search_model()->mode().is_search()); |
| 47 } | 47 } |
| 48 | 48 |
| 49 } // namespace search | 49 } // namespace search |
| 50 } // namespace chrome | 50 } // namespace chrome |
| OLD | NEW |