| 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/browser/extensions/extension_apitest.h" | 5 #include "chrome/browser/extensions/extension_apitest.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 manager->GetActiveIMEState()->EnableLoginLayouts(kLoginScreenUILanguage, | 57 manager->GetActiveIMEState()->EnableLoginLayouts(kLoginScreenUILanguage, |
| 58 keyboard_layouts); | 58 keyboard_layouts); |
| 59 } | 59 } |
| 60 } | 60 } |
| 61 | 61 |
| 62 private: | 62 private: |
| 63 content::NotificationRegistrar registrar_; | 63 content::NotificationRegistrar registrar_; |
| 64 }; | 64 }; |
| 65 | 65 |
| 66 class ExtensionInputMethodApiTest : public ExtensionApiTest { | 66 class ExtensionInputMethodApiTest : public ExtensionApiTest { |
| 67 virtual void SetUpCommandLine(CommandLine* command_line) override { | 67 virtual void SetUpCommandLine(base::CommandLine* command_line) override { |
| 68 ExtensionApiTest::SetUpCommandLine(command_line); | 68 ExtensionApiTest::SetUpCommandLine(command_line); |
| 69 command_line->AppendSwitchASCII( | 69 command_line->AppendSwitchASCII( |
| 70 extensions::switches::kWhitelistedExtensionID, | 70 extensions::switches::kWhitelistedExtensionID, |
| 71 "ilanclmaeigfpnmdlgelmhkpkegdioip"); | 71 "ilanclmaeigfpnmdlgelmhkpkegdioip"); |
| 72 } | 72 } |
| 73 }; | 73 }; |
| 74 | 74 |
| 75 } // namespace | 75 } // namespace |
| 76 | 76 |
| 77 IN_PROC_BROWSER_TEST_F(ExtensionInputMethodApiTest, Basic) { | 77 IN_PROC_BROWSER_TEST_F(ExtensionInputMethodApiTest, Basic) { |
| 78 // Listener for extension's background ready. | 78 // Listener for extension's background ready. |
| 79 TestListener listener; | 79 TestListener listener; |
| 80 | 80 |
| 81 ASSERT_TRUE(RunExtensionTest("input_method")) << message_; | 81 ASSERT_TRUE(RunExtensionTest("input_method")) << message_; |
| 82 } | 82 } |
| OLD | NEW |