| OLD | NEW |
| 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 "chrome/browser/ui/views/translate/translate_bubble_view.h" | 5 #include "chrome/browser/ui/views/translate/translate_bubble_view.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/macros.h" |
| 8 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 9 #include "chrome/browser/chrome_notification_types.h" | 10 #include "chrome/browser/chrome_notification_types.h" |
| 10 #include "chrome/browser/translate/cld_data_harness.h" | 11 #include "chrome/browser/translate/cld_data_harness.h" |
| 11 #include "chrome/browser/translate/cld_data_harness_factory.h" | 12 #include "chrome/browser/translate/cld_data_harness_factory.h" |
| 12 #include "chrome/browser/ui/browser.h" | 13 #include "chrome/browser/ui/browser.h" |
| 13 #include "chrome/browser/ui/browser_commands.h" | 14 #include "chrome/browser/ui/browser_commands.h" |
| 14 #include "chrome/browser/ui/browser_tabstrip.h" | 15 #include "chrome/browser/ui/browser_tabstrip.h" |
| 15 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 16 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
| 16 #include "chrome/common/chrome_switches.h" | 17 #include "chrome/common/chrome_switches.h" |
| 17 #include "chrome/test/base/in_process_browser_test.h" | 18 #include "chrome/test/base/in_process_browser_test.h" |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 chrome::CloseWebContents(browser(), web_contents, false); | 118 chrome::CloseWebContents(browser(), web_contents, false); |
| 118 EXPECT_EQ(active_index, browser()->tab_strip_model()->active_index()); | 119 EXPECT_EQ(active_index, browser()->tab_strip_model()->active_index()); |
| 119 EXPECT_EQ(1, browser()->tab_strip_model()->count()); | 120 EXPECT_EQ(1, browser()->tab_strip_model()->count()); |
| 120 EXPECT_FALSE(TranslateBubbleView::GetCurrentBubble()); | 121 EXPECT_FALSE(TranslateBubbleView::GetCurrentBubble()); |
| 121 | 122 |
| 122 // Close the last tab. | 123 // Close the last tab. |
| 123 chrome::CloseWebContents(browser(), | 124 chrome::CloseWebContents(browser(), |
| 124 browser()->tab_strip_model()->GetActiveWebContents(), | 125 browser()->tab_strip_model()->GetActiveWebContents(), |
| 125 false); | 126 false); |
| 126 } | 127 } |
| OLD | NEW |