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

Side by Side Diff: chrome/common/extensions/api/commands/commands_manifest_unittest.cc

Issue 15981010: Use a direct include of strings headers in chrome/common/, part 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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
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/common/extensions/manifest_tests/extension_manifest_test.h" 5 #include "chrome/common/extensions/manifest_tests/extension_manifest_test.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/string_util.h" 8 #include "base/strings/string_util.h"
9 #include "chrome/common/chrome_switches.h" 9 #include "chrome/common/chrome_switches.h"
10 #include "chrome/common/extensions/api/commands/commands_handler.h" 10 #include "chrome/common/extensions/api/commands/commands_handler.h"
11 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
12 12
13 namespace errors = extension_manifest_errors; 13 namespace errors = extension_manifest_errors;
14 14
15 namespace extensions { 15 namespace extensions {
16 16
17 class CommandsManifestTest : public ExtensionManifestTest { 17 class CommandsManifestTest : public ExtensionManifestTest {
18 }; 18 };
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 LoadAndExpectSuccess("browser_action_synthesizes_command.json"); 86 LoadAndExpectSuccess("browser_action_synthesizes_command.json");
87 // An extension with a browser action but no extension command specified 87 // An extension with a browser action but no extension command specified
88 // should get a command assigned to it. 88 // should get a command assigned to it.
89 const extensions::Command* command = 89 const extensions::Command* command =
90 CommandsInfo::GetBrowserActionCommand(extension.get()); 90 CommandsInfo::GetBrowserActionCommand(extension.get());
91 ASSERT_TRUE(command != NULL); 91 ASSERT_TRUE(command != NULL);
92 ASSERT_EQ(ui::VKEY_UNKNOWN, command->accelerator().key_code()); 92 ASSERT_EQ(ui::VKEY_UNKNOWN, command->accelerator().key_code());
93 } 93 }
94 94
95 } // namespace extensions 95 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/common/custom_handlers/protocol_handler.cc ('k') | chrome/common/extensions/api/extension_action/action_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698