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

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

Issue 219963007: Move Translate renderer messages to the Translate component (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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.h" 16 #include "chrome/browser/infobars/infobar.h"
17 #include "chrome/browser/infobars/infobar_service.h" 17 #include "chrome/browser/infobars/infobar_service.h"
18 #include "chrome/browser/renderer_context_menu/render_view_context_menu_test_uti l.h" 18 #include "chrome/browser/renderer_context_menu/render_view_context_menu_test_uti l.h"
19 #include "chrome/browser/translate/translate_infobar_delegate.h" 19 #include "chrome/browser/translate/translate_infobar_delegate.h"
20 #include "chrome/browser/translate/translate_manager.h" 20 #include "chrome/browser/translate/translate_manager.h"
21 #include "chrome/browser/translate/translate_service.h" 21 #include "chrome/browser/translate/translate_service.h"
22 #include "chrome/browser/translate/translate_tab_helper.h" 22 #include "chrome/browser/translate/translate_tab_helper.h"
23 #include "chrome/browser/ui/translate/translate_bubble_factory.h" 23 #include "chrome/browser/ui/translate/translate_bubble_factory.h"
24 #include "chrome/browser/ui/translate/translate_bubble_model.h" 24 #include "chrome/browser/ui/translate/translate_bubble_model.h"
25 #include "chrome/browser/ui/translate/translate_bubble_model_impl.h" 25 #include "chrome/browser/ui/translate/translate_bubble_model_impl.h"
26 #include "chrome/common/chrome_switches.h" 26 #include "chrome/common/chrome_switches.h"
27 #include "chrome/common/pref_names.h" 27 #include "chrome/common/pref_names.h"
28 #include "chrome/common/render_messages.h"
29 #include "chrome/common/url_constants.h" 28 #include "chrome/common/url_constants.h"
30 #include "chrome/test/base/chrome_render_view_host_test_harness.h" 29 #include "chrome/test/base/chrome_render_view_host_test_harness.h"
31 #include "chrome/test/base/testing_browser_process.h" 30 #include "chrome/test/base/testing_browser_process.h"
32 #include "chrome/test/base/testing_profile.h" 31 #include "chrome/test/base/testing_profile.h"
32 #include "components/translate/content/common/translate_messages.h"
33 #include "components/translate/core/browser/translate_accept_languages.h" 33 #include "components/translate/core/browser/translate_accept_languages.h"
34 #include "components/translate/core/browser/translate_download_manager.h" 34 #include "components/translate/core/browser/translate_download_manager.h"
35 #include "components/translate/core/browser/translate_language_list.h" 35 #include "components/translate/core/browser/translate_language_list.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"
(...skipping 1488 matching lines...) Expand 10 before | Expand all | Expand 10 after
1531 // Check the bubble exists instead of the infobar. 1531 // Check the bubble exists instead of the infobar.
1532 TranslateInfoBarDelegate* infobar = GetTranslateInfoBar(); 1532 TranslateInfoBarDelegate* infobar = GetTranslateInfoBar();
1533 ASSERT_TRUE(infobar == NULL); 1533 ASSERT_TRUE(infobar == NULL);
1534 TranslateBubbleModel* bubble = factory->model(); 1534 TranslateBubbleModel* bubble = factory->model();
1535 ASSERT_TRUE(bubble != NULL); 1535 ASSERT_TRUE(bubble != NULL);
1536 EXPECT_EQ(TranslateBubbleModel::VIEW_STATE_TRANSLATING, 1536 EXPECT_EQ(TranslateBubbleModel::VIEW_STATE_TRANSLATING,
1537 bubble->GetViewState()); 1537 bubble->GetViewState());
1538 } 1538 }
1539 1539
1540 #endif // defined(USE_AURA) 1540 #endif // defined(USE_AURA)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698