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

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

Issue 2819793002: Translate: do not show the context menu entry when the feature is disabled (Closed)
Patch Set: some more include path changes for ios/android Created 3 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
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 <stddef.h> 5 #include <stddef.h>
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <memory> 8 #include <memory>
9 #include <set> 9 #include <set>
10 #include <tuple> 10 #include <tuple>
(...skipping 24 matching lines...) Expand all
35 #include "chrome/test/base/testing_profile.h" 35 #include "chrome/test/base/testing_profile.h"
36 #include "components/infobars/core/infobar.h" 36 #include "components/infobars/core/infobar.h"
37 #include "components/prefs/pref_change_registrar.h" 37 #include "components/prefs/pref_change_registrar.h"
38 #include "components/prefs/pref_service.h" 38 #include "components/prefs/pref_service.h"
39 #include "components/translate/content/browser/content_translate_driver.h" 39 #include "components/translate/content/browser/content_translate_driver.h"
40 #include "components/translate/content/common/translate.mojom.h" 40 #include "components/translate/content/common/translate.mojom.h"
41 #include "components/translate/core/browser/translate_accept_languages.h" 41 #include "components/translate/core/browser/translate_accept_languages.h"
42 #include "components/translate/core/browser/translate_download_manager.h" 42 #include "components/translate/core/browser/translate_download_manager.h"
43 #include "components/translate/core/browser/translate_language_list.h" 43 #include "components/translate/core/browser/translate_language_list.h"
44 #include "components/translate/core/browser/translate_manager.h" 44 #include "components/translate/core/browser/translate_manager.h"
45 #include "components/translate/core/browser/translate_pref_names.h"
45 #include "components/translate/core/browser/translate_prefs.h" 46 #include "components/translate/core/browser/translate_prefs.h"
46 #include "components/translate/core/browser/translate_script.h" 47 #include "components/translate/core/browser/translate_script.h"
47 #include "components/translate/core/browser/translate_ui_delegate.h" 48 #include "components/translate/core/browser/translate_ui_delegate.h"
48 #include "components/translate/core/common/language_detection_details.h" 49 #include "components/translate/core/common/language_detection_details.h"
49 #include "components/translate/core/common/translate_pref_names.h"
50 #include "content/public/browser/navigation_details.h" 50 #include "content/public/browser/navigation_details.h"
51 #include "content/public/browser/navigation_entry.h" 51 #include "content/public/browser/navigation_entry.h"
52 #include "content/public/browser/notification_details.h" 52 #include "content/public/browser/notification_details.h"
53 #include "content/public/browser/notification_registrar.h" 53 #include "content/public/browser/notification_registrar.h"
54 #include "content/public/browser/web_contents.h" 54 #include "content/public/browser/web_contents.h"
55 #include "content/public/common/browser_side_navigation_policy.h" 55 #include "content/public/common/browser_side_navigation_policy.h"
56 #include "content/public/common/url_constants.h" 56 #include "content/public/common/url_constants.h"
57 #include "content/public/test/test_renderer_host.h" 57 #include "content/public/test/test_renderer_host.h"
58 #include "mojo/public/cpp/bindings/binding.h" 58 #include "mojo/public/cpp/bindings/binding.h"
59 #include "net/base/net_errors.h" 59 #include "net/base/net_errors.h"
(...skipping 1756 matching lines...) Expand 10 before | Expand all | Expand 10 after
1816 1816
1817 // Check the bubble exists instead of the infobar. 1817 // Check the bubble exists instead of the infobar.
1818 translate::TranslateInfoBarDelegate* infobar = GetTranslateInfoBar(); 1818 translate::TranslateInfoBarDelegate* infobar = GetTranslateInfoBar();
1819 ASSERT_TRUE(infobar == NULL); 1819 ASSERT_TRUE(infobar == NULL);
1820 TranslateBubbleModel* bubble = factory->model(); 1820 TranslateBubbleModel* bubble = factory->model();
1821 ASSERT_TRUE(bubble != NULL); 1821 ASSERT_TRUE(bubble != NULL);
1822 EXPECT_EQ(TranslateBubbleModel::VIEW_STATE_TRANSLATING, 1822 EXPECT_EQ(TranslateBubbleModel::VIEW_STATE_TRANSLATING,
1823 bubble->GetViewState()); 1823 bubble->GetViewState());
1824 } 1824 }
1825 #endif // defined(USE_AURA) 1825 #endif // defined(USE_AURA)
OLDNEW
« no previous file with comments | « chrome/browser/renderer_context_menu/render_view_context_menu.cc ('k') | chrome/browser/ui/browser_ui_prefs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698