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

Side by Side Diff: chrome/browser/ui/views/translate/translate_bubble_view_browsertest.cc

Issue 93603006: Move Translate-related files to components/translate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments Created 6 years, 11 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
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 "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 "chrome/browser/chrome_notification_types.h" 8 #include "chrome/browser/chrome_notification_types.h"
9 #include "chrome/browser/ui/browser.h" 9 #include "chrome/browser/ui/browser.h"
10 #include "chrome/browser/ui/browser_commands.h" 10 #include "chrome/browser/ui/browser_commands.h"
11 #include "chrome/browser/ui/browser_tabstrip.h" 11 #include "chrome/browser/ui/browser_tabstrip.h"
12 #include "chrome/browser/ui/tabs/tab_strip_model.h" 12 #include "chrome/browser/ui/tabs/tab_strip_model.h"
13 #include "chrome/common/chrome_switches.h" 13 #include "chrome/common/chrome_switches.h"
14 #include "chrome/common/translate/language_detection_details.h"
15 #include "chrome/test/base/in_process_browser_test.h" 14 #include "chrome/test/base/in_process_browser_test.h"
16 #include "chrome/test/base/ui_test_utils.h" 15 #include "chrome/test/base/ui_test_utils.h"
16 #include "components/translate/core/common/language_detection_details.h"
17 #include "content/public/browser/notification_details.h" 17 #include "content/public/browser/notification_details.h"
18 18
19 class TranslateBubbleViewBrowserTest : public InProcessBrowserTest { 19 class TranslateBubbleViewBrowserTest : public InProcessBrowserTest {
20 public: 20 public:
21 TranslateBubbleViewBrowserTest() {} 21 TranslateBubbleViewBrowserTest() {}
22 virtual ~TranslateBubbleViewBrowserTest() {} 22 virtual ~TranslateBubbleViewBrowserTest() {}
23 23
24 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE { 24 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE {
25 command_line->AppendSwitch(switches::kEnableTranslateNewUX); 25 command_line->AppendSwitch(switches::kEnableTranslateNewUX);
26 } 26 }
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 chrome::CloseWebContents(browser(), web_contents, false); 106 chrome::CloseWebContents(browser(), web_contents, false);
107 EXPECT_EQ(active_index, browser()->tab_strip_model()->active_index()); 107 EXPECT_EQ(active_index, browser()->tab_strip_model()->active_index());
108 EXPECT_EQ(1, browser()->tab_strip_model()->count()); 108 EXPECT_EQ(1, browser()->tab_strip_model()->count());
109 EXPECT_FALSE(TranslateBubbleView::IsShowing()); 109 EXPECT_FALSE(TranslateBubbleView::IsShowing());
110 110
111 // Close the last tab. 111 // Close the last tab.
112 chrome::CloseWebContents(browser(), 112 chrome::CloseWebContents(browser(),
113 browser()->tab_strip_model()->GetActiveWebContents(), 113 browser()->tab_strip_model()->GetActiveWebContents(),
114 false); 114 false);
115 } 115 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698