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

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

Issue 1658793002: Update chrome for new prefs location. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 #include <algorithm> 6 #include <algorithm>
7 #include <set> 7 #include <set>
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/prefs/pref_change_registrar.h"
14 #include "base/prefs/pref_service.h"
15 #include "base/strings/stringprintf.h" 13 #include "base/strings/stringprintf.h"
16 #include "build/build_config.h" 14 #include "build/build_config.h"
17 #include "chrome/app/chrome_command_ids.h" 15 #include "chrome/app/chrome_command_ids.h"
18 #include "chrome/browser/chrome_notification_types.h" 16 #include "chrome/browser/chrome_notification_types.h"
19 #include "chrome/browser/extensions/test_extension_system.h" 17 #include "chrome/browser/extensions/test_extension_system.h"
20 #include "chrome/browser/infobars/infobar_service.h" 18 #include "chrome/browser/infobars/infobar_service.h"
21 #include "chrome/browser/renderer_context_menu/render_view_context_menu_test_uti l.h" 19 #include "chrome/browser/renderer_context_menu/render_view_context_menu_test_uti l.h"
22 #include "chrome/browser/translate/chrome_translate_client.h" 20 #include "chrome/browser/translate/chrome_translate_client.h"
23 #include "chrome/browser/translate/translate_service.h" 21 #include "chrome/browser/translate/translate_service.h"
24 #include "chrome/browser/ui/translate/translate_bubble_factory.h" 22 #include "chrome/browser/ui/translate/translate_bubble_factory.h"
25 #include "chrome/browser/ui/translate/translate_bubble_model.h" 23 #include "chrome/browser/ui/translate/translate_bubble_model.h"
26 #include "chrome/browser/ui/translate/translate_bubble_model_impl.h" 24 #include "chrome/browser/ui/translate/translate_bubble_model_impl.h"
27 #include "chrome/common/chrome_switches.h" 25 #include "chrome/common/chrome_switches.h"
28 #include "chrome/common/pref_names.h" 26 #include "chrome/common/pref_names.h"
29 #include "chrome/common/url_constants.h" 27 #include "chrome/common/url_constants.h"
30 #include "chrome/test/base/chrome_render_view_host_test_harness.h" 28 #include "chrome/test/base/chrome_render_view_host_test_harness.h"
31 #include "chrome/test/base/testing_browser_process.h" 29 #include "chrome/test/base/testing_browser_process.h"
32 #include "chrome/test/base/testing_profile.h" 30 #include "chrome/test/base/testing_profile.h"
33 #include "components/infobars/core/infobar.h" 31 #include "components/infobars/core/infobar.h"
32 #include "components/prefs/pref_change_registrar.h"
33 #include "components/prefs/pref_service.h"
34 #include "components/translate/content/browser/content_translate_driver.h" 34 #include "components/translate/content/browser/content_translate_driver.h"
35 #include "components/translate/content/common/translate_messages.h" 35 #include "components/translate/content/common/translate_messages.h"
36 #include "components/translate/core/browser/translate_accept_languages.h" 36 #include "components/translate/core/browser/translate_accept_languages.h"
37 #include "components/translate/core/browser/translate_download_manager.h" 37 #include "components/translate/core/browser/translate_download_manager.h"
38 #include "components/translate/core/browser/translate_language_list.h" 38 #include "components/translate/core/browser/translate_language_list.h"
39 #include "components/translate/core/browser/translate_manager.h" 39 #include "components/translate/core/browser/translate_manager.h"
40 #include "components/translate/core/browser/translate_prefs.h" 40 #include "components/translate/core/browser/translate_prefs.h"
41 #include "components/translate/core/browser/translate_script.h" 41 #include "components/translate/core/browser/translate_script.h"
42 #include "components/translate/core/browser/translate_ui_delegate.h" 42 #include "components/translate/core/browser/translate_ui_delegate.h"
43 #include "components/translate/core/common/language_detection_details.h" 43 #include "components/translate/core/common/language_detection_details.h"
(...skipping 1635 matching lines...) Expand 10 before | Expand all | Expand 10 after
1679 1679
1680 // Check the bubble exists instead of the infobar. 1680 // Check the bubble exists instead of the infobar.
1681 translate::TranslateInfoBarDelegate* infobar = GetTranslateInfoBar(); 1681 translate::TranslateInfoBarDelegate* infobar = GetTranslateInfoBar();
1682 ASSERT_TRUE(infobar == NULL); 1682 ASSERT_TRUE(infobar == NULL);
1683 TranslateBubbleModel* bubble = factory->model(); 1683 TranslateBubbleModel* bubble = factory->model();
1684 ASSERT_TRUE(bubble != NULL); 1684 ASSERT_TRUE(bubble != NULL);
1685 EXPECT_EQ(TranslateBubbleModel::VIEW_STATE_TRANSLATING, 1685 EXPECT_EQ(TranslateBubbleModel::VIEW_STATE_TRANSLATING,
1686 bubble->GetViewState()); 1686 bubble->GetViewState());
1687 } 1687 }
1688 #endif // defined(USE_AURA) 1688 #endif // defined(USE_AURA)
OLDNEW
« no previous file with comments | « chrome/browser/translate/translate_accept_languages_factory.cc ('k') | chrome/browser/translate/translate_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698