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

Side by Side Diff: chrome/browser/extensions/extension_context_menu_model_unittest.cc

Issue 498773003: Use a qualified path for chromium_strings, google_chrome_strings, and generated_resources. (part 2 … (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 3 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
« no previous file with comments | « no previous file | chrome/browser/signin/easy_unlock_screenlock_state_handler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/extensions/extension_context_menu_model.h" 5 #include "chrome/browser/extensions/extension_context_menu_model.h"
6 6
7 #include "chrome/browser/extensions/api/extension_action/extension_action_api.h" 7 #include "chrome/browser/extensions/api/extension_action/extension_action_api.h"
8 #include "chrome/browser/extensions/extension_service.h" 8 #include "chrome/browser/extensions/extension_service.h"
9 #include "chrome/browser/extensions/extension_service_test_base.h" 9 #include "chrome/browser/extensions/extension_service_test_base.h"
10 #include "chrome/browser/extensions/menu_manager.h" 10 #include "chrome/browser/extensions/menu_manager.h"
11 #include "chrome/browser/extensions/menu_manager_factory.h" 11 #include "chrome/browser/extensions/menu_manager_factory.h"
12 #include "chrome/browser/ui/browser.h" 12 #include "chrome/browser/ui/browser.h"
13 #include "chrome/browser/ui/host_desktop.h" 13 #include "chrome/browser/ui/host_desktop.h"
14 #include "chrome/common/extensions/api/context_menus.h" 14 #include "chrome/common/extensions/api/context_menus.h"
15 #include "chrome/grit/generated_resources.h"
15 #include "chrome/test/base/test_browser_window.h" 16 #include "chrome/test/base/test_browser_window.h"
16 #include "chrome/test/base/testing_profile.h" 17 #include "chrome/test/base/testing_profile.h"
17 #include "components/crx_file/id_util.h" 18 #include "components/crx_file/id_util.h"
18 #include "extensions/browser/extension_prefs.h" 19 #include "extensions/browser/extension_prefs.h"
19 #include "extensions/browser/extension_system.h" 20 #include "extensions/browser/extension_system.h"
20 #include "extensions/browser/test_management_policy.h" 21 #include "extensions/browser/test_management_policy.h"
21 #include "extensions/common/extension_builder.h" 22 #include "extensions/common/extension_builder.h"
22 #include "extensions/common/feature_switch.h" 23 #include "extensions/common/feature_switch.h"
23 #include "extensions/common/manifest_constants.h" 24 #include "extensions/common/manifest_constants.h"
24 #include "extensions/common/value_builder.h" 25 #include "extensions/common/value_builder.h"
25 #include "grit/generated_resources.h"
26 #include "testing/gtest/include/gtest/gtest.h" 26 #include "testing/gtest/include/gtest/gtest.h"
27 #include "ui/base/l10n/l10n_util.h" 27 #include "ui/base/l10n/l10n_util.h"
28 28
29 namespace extensions { 29 namespace extensions {
30 30
31 namespace { 31 namespace {
32 32
33 // Build an extension to pass to the menu constructor, with the an action 33 // Build an extension to pass to the menu constructor, with the an action
34 // specified by |action_key|. 34 // specified by |action_key|.
35 scoped_refptr<const Extension> BuildExtension(const std::string& name, 35 scoped_refptr<const Extension> BuildExtension(const std::string& name,
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 // Hide the browser action. This should mean the string is "show". 266 // Hide the browser action. This should mean the string is "show".
267 ExtensionActionAPI::SetBrowserActionVisibility( 267 ExtensionActionAPI::SetBrowserActionVisibility(
268 prefs, browser_action->id(), false); 268 prefs, browser_action->id(), false);
269 menu = new ExtensionContextMenuModel(browser_action.get(), browser.get()); 269 menu = new ExtensionContextMenuModel(browser_action.get(), browser.get());
270 index = GetCommandIndex(menu, visibility_command); 270 index = GetCommandIndex(menu, visibility_command);
271 EXPECT_NE(-1, index); 271 EXPECT_NE(-1, index);
272 EXPECT_EQ(show_string, menu->GetLabelAt(index)); 272 EXPECT_EQ(show_string, menu->GetLabelAt(index));
273 } 273 }
274 274
275 } // namespace extensions 275 } // namespace extensions
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/signin/easy_unlock_screenlock_state_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698