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

Side by Side Diff: chrome/browser/renderer_context_menu/render_view_context_menu_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 "chrome/browser/renderer_context_menu/render_view_context_menu.h" 5 #include "chrome/browser/renderer_context_menu/render_view_context_menu.h"
6 6
7 #include "base/prefs/pref_registry_simple.h"
8 #include "base/prefs/pref_service.h"
9 #include "base/run_loop.h" 7 #include "base/run_loop.h"
10 #include "base/strings/utf_string_conversions.h" 8 #include "base/strings/utf_string_conversions.h"
11 #include "base/thread_task_runner_handle.h" 9 #include "base/thread_task_runner_handle.h"
12 #include "chrome/app/chrome_command_ids.h" 10 #include "chrome/app/chrome_command_ids.h"
13 #include "chrome/browser/custom_handlers/protocol_handler_registry.h" 11 #include "chrome/browser/custom_handlers/protocol_handler_registry.h"
14 #include "chrome/browser/extensions/menu_manager.h" 12 #include "chrome/browser/extensions/menu_manager.h"
15 #include "chrome/browser/extensions/menu_manager_factory.h" 13 #include "chrome/browser/extensions/menu_manager_factory.h"
16 #include "chrome/browser/extensions/test_extension_environment.h" 14 #include "chrome/browser/extensions/test_extension_environment.h"
17 #include "chrome/browser/extensions/test_extension_prefs.h" 15 #include "chrome/browser/extensions/test_extension_prefs.h"
18 #include "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.h" 16 #include "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.h"
19 #include "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings_fact ory.h" 17 #include "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings_fact ory.h"
20 #include "chrome/browser/prefs/incognito_mode_prefs.h" 18 #include "chrome/browser/prefs/incognito_mode_prefs.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/common/pref_names.h" 20 #include "chrome/common/pref_names.h"
23 #include "chrome/test/base/chrome_render_view_host_test_harness.h" 21 #include "chrome/test/base/chrome_render_view_host_test_harness.h"
24 #include "chrome/test/base/testing_profile.h" 22 #include "chrome/test/base/testing_profile.h"
25 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_test _utils.h" 23 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_test _utils.h"
26 #include "components/data_reduction_proxy/core/browser/data_store.h" 24 #include "components/data_reduction_proxy/core/browser/data_store.h"
27 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_heade rs.h" 25 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_heade rs.h"
28 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_param s.h" 26 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_param s.h"
27 #include "components/prefs/pref_registry_simple.h"
28 #include "components/prefs/pref_service.h"
29 #include "components/proxy_config/proxy_config_pref_names.h" 29 #include "components/proxy_config/proxy_config_pref_names.h"
30 #include "content/public/browser/web_contents.h" 30 #include "content/public/browser/web_contents.h"
31 #include "content/public/test/test_renderer_host.h" 31 #include "content/public/test/test_renderer_host.h"
32 #include "content/public/test/web_contents_tester.h" 32 #include "content/public/test/web_contents_tester.h"
33 33
34 #include "extensions/browser/extension_prefs.h" 34 #include "extensions/browser/extension_prefs.h"
35 #include "extensions/common/url_pattern.h" 35 #include "extensions/common/url_pattern.h"
36 #include "testing/gtest/include/gtest/gtest.h" 36 #include "testing/gtest/include/gtest/gtest.h"
37 #include "third_party/WebKit/public/web/WebContextMenuData.h" 37 #include "third_party/WebKit/public/web/WebContextMenuData.h"
38 #include "url/gurl.h" 38 #include "url/gurl.h"
(...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after
519 params.unfiltered_link_url = params.link_url; 519 params.unfiltered_link_url = params.link_url;
520 content::WebContents* wc = web_contents(); 520 content::WebContents* wc = web_contents();
521 scoped_ptr<TestRenderViewContextMenu> menu( 521 scoped_ptr<TestRenderViewContextMenu> menu(
522 new TestRenderViewContextMenu(wc->GetMainFrame(), params)); 522 new TestRenderViewContextMenu(wc->GetMainFrame(), params));
523 AppendImageItems(menu.get()); 523 AppendImageItems(menu.get());
524 524
525 ASSERT_TRUE(menu->IsItemPresent(IDC_CONTENT_CONTEXT_LOAD_ORIGINAL_IMAGE)); 525 ASSERT_TRUE(menu->IsItemPresent(IDC_CONTENT_CONTEXT_LOAD_ORIGINAL_IMAGE));
526 526
527 DestroyDataReductionProxySettings(); 527 DestroyDataReductionProxySettings();
528 } 528 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698