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

Side by Side Diff: chrome/browser/extensions/api/commands/command_service_browsertest.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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 "base/prefs/scoped_user_pref_update.h"
6 #include "build/build_config.h" 5 #include "build/build_config.h"
7 #include "chrome/browser/extensions/api/commands/command_service.h" 6 #include "chrome/browser/extensions/api/commands/command_service.h"
8 #include "chrome/browser/extensions/extension_apitest.h" 7 #include "chrome/browser/extensions/extension_apitest.h"
9 #include "chrome/browser/extensions/extension_service.h" 8 #include "chrome/browser/extensions/extension_service.h"
10 #include "chrome/common/pref_names.h" 9 #include "chrome/common/pref_names.h"
10 #include "components/prefs/scoped_user_pref_update.h"
11 #include "content/public/test/browser_test.h" 11 #include "content/public/test/browser_test.h"
12 #include "content/public/test/test_utils.h" 12 #include "content/public/test/test_utils.h"
13 #include "extensions/common/manifest_constants.h" 13 #include "extensions/common/manifest_constants.h"
14 14
15 namespace { 15 namespace {
16 const char kBasicBrowserActionKeybinding[] = "Ctrl+Shift+F"; 16 const char kBasicBrowserActionKeybinding[] = "Ctrl+Shift+F";
17 const char kBasicNamedKeybinding[] = "Ctrl+Shift+Y"; 17 const char kBasicNamedKeybinding[] = "Ctrl+Shift+Y";
18 const char kBasicAlternateKeybinding[] = "Ctrl+Shift+G"; 18 const char kBasicAlternateKeybinding[] = "Ctrl+Shift+G";
19 const char kBasicNamedCommand[] = "toggle-feature"; 19 const char kBasicNamedCommand[] = "toggle-feature";
20 20
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after
412 &command_map)); 412 &command_map));
413 413
414 ASSERT_EQ(1u, command_map.count(kBasicNamedCommand)); 414 ASSERT_EQ(1u, command_map.count(kBasicNamedCommand));
415 Command command = command_map[kBasicNamedCommand]; 415 Command command = command_map[kBasicNamedCommand];
416 EXPECT_EQ(kBasicNamedKeybinding, 416 EXPECT_EQ(kBasicNamedKeybinding,
417 Command::AcceleratorToString(command.accelerator())); 417 Command::AcceleratorToString(command.accelerator()));
418 } 418 }
419 } 419 }
420 420
421 } // namespace extensions 421 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698