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

Side by Side Diff: chrome/browser/translate/translate_manager_render_view_host_unittest.cc

Issue 284313008: Move TranslateInfoBarDelegate and OptionsMenuModel to the Translate component. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase + review comments Created 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 <algorithm> 5 #include <algorithm>
6 #include <set> 6 #include <set>
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/prefs/pref_change_registrar.h" 10 #include "base/prefs/pref_change_registrar.h"
11 #include "base/prefs/pref_service.h" 11 #include "base/prefs/pref_service.h"
12 #include "base/strings/stringprintf.h" 12 #include "base/strings/stringprintf.h"
13 #include "chrome/app/chrome_command_ids.h" 13 #include "chrome/app/chrome_command_ids.h"
14 #include "chrome/browser/chrome_notification_types.h" 14 #include "chrome/browser/chrome_notification_types.h"
15 #include "chrome/browser/extensions/test_extension_system.h" 15 #include "chrome/browser/extensions/test_extension_system.h"
16 #include "chrome/browser/infobars/infobar_service.h" 16 #include "chrome/browser/infobars/infobar_service.h"
17 #include "chrome/browser/renderer_context_menu/render_view_context_menu_test_uti l.h" 17 #include "chrome/browser/renderer_context_menu/render_view_context_menu_test_uti l.h"
18 #include "chrome/browser/translate/translate_infobar_delegate.h"
19 #include "chrome/browser/translate/translate_service.h" 18 #include "chrome/browser/translate/translate_service.h"
20 #include "chrome/browser/translate/translate_tab_helper.h" 19 #include "chrome/browser/translate/translate_tab_helper.h"
21 #include "chrome/browser/ui/translate/translate_bubble_factory.h" 20 #include "chrome/browser/ui/translate/translate_bubble_factory.h"
22 #include "chrome/browser/ui/translate/translate_bubble_model.h" 21 #include "chrome/browser/ui/translate/translate_bubble_model.h"
23 #include "chrome/browser/ui/translate/translate_bubble_model_impl.h" 22 #include "chrome/browser/ui/translate/translate_bubble_model_impl.h"
24 #include "chrome/common/chrome_switches.h" 23 #include "chrome/common/chrome_switches.h"
25 #include "chrome/common/pref_names.h" 24 #include "chrome/common/pref_names.h"
26 #include "chrome/common/url_constants.h" 25 #include "chrome/common/url_constants.h"
27 #include "chrome/test/base/chrome_render_view_host_test_harness.h" 26 #include "chrome/test/base/chrome_render_view_host_test_harness.h"
28 #include "chrome/test/base/testing_browser_process.h" 27 #include "chrome/test/base/testing_browser_process.h"
29 #include "chrome/test/base/testing_profile.h" 28 #include "chrome/test/base/testing_profile.h"
30 #include "components/infobars/core/infobar.h" 29 #include "components/infobars/core/infobar.h"
31 #include "components/translate/content/common/translate_messages.h" 30 #include "components/translate/content/common/translate_messages.h"
32 #include "components/translate/core/browser/translate_accept_languages.h" 31 #include "components/translate/core/browser/translate_accept_languages.h"
33 #include "components/translate/core/browser/translate_download_manager.h" 32 #include "components/translate/core/browser/translate_download_manager.h"
33 #include "components/translate/core/browser/translate_infobar_delegate.h"
34 #include "components/translate/core/browser/translate_language_list.h" 34 #include "components/translate/core/browser/translate_language_list.h"
35 #include "components/translate/core/browser/translate_manager.h" 35 #include "components/translate/core/browser/translate_manager.h"
36 #include "components/translate/core/browser/translate_prefs.h" 36 #include "components/translate/core/browser/translate_prefs.h"
37 #include "components/translate/core/browser/translate_script.h" 37 #include "components/translate/core/browser/translate_script.h"
38 #include "components/translate/core/common/language_detection_details.h" 38 #include "components/translate/core/common/language_detection_details.h"
39 #include "components/translate/core/common/translate_pref_names.h" 39 #include "components/translate/core/common/translate_pref_names.h"
40 #include "content/public/browser/navigation_details.h" 40 #include "content/public/browser/navigation_details.h"
41 #include "content/public/browser/navigation_entry.h" 41 #include "content/public/browser/navigation_entry.h"
42 #include "content/public/browser/notification_details.h" 42 #include "content/public/browser/notification_details.h"
43 #include "content/public/browser/notification_registrar.h" 43 #include "content/public/browser/notification_registrar.h"
(...skipping 1500 matching lines...) Expand 10 before | Expand all | Expand 10 after
1544 // Check the bubble exists instead of the infobar. 1544 // Check the bubble exists instead of the infobar.
1545 TranslateInfoBarDelegate* infobar = GetTranslateInfoBar(); 1545 TranslateInfoBarDelegate* infobar = GetTranslateInfoBar();
1546 ASSERT_TRUE(infobar == NULL); 1546 ASSERT_TRUE(infobar == NULL);
1547 TranslateBubbleModel* bubble = factory->model(); 1547 TranslateBubbleModel* bubble = factory->model();
1548 ASSERT_TRUE(bubble != NULL); 1548 ASSERT_TRUE(bubble != NULL);
1549 EXPECT_EQ(TranslateBubbleModel::VIEW_STATE_TRANSLATING, 1549 EXPECT_EQ(TranslateBubbleModel::VIEW_STATE_TRANSLATING,
1550 bubble->GetViewState()); 1550 bubble->GetViewState());
1551 } 1551 }
1552 1552
1553 #endif // defined(USE_AURA) 1553 #endif // defined(USE_AURA)
OLDNEW
« no previous file with comments | « chrome/browser/translate/translate_infobar_delegate.cc ('k') | chrome/browser/translate/translate_tab_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698