OLD | NEW |
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 Loading... |
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 |
OLD | NEW |