| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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/bind_helpers.h" | 5 #include "base/bind_helpers.h" |
| 6 #include "base/strings/stringprintf.h" | 6 #include "base/strings/stringprintf.h" |
| 7 #include "base/strings/utf_string_conversions.h" | 7 #include "base/strings/utf_string_conversions.h" |
| 8 #include "chrome/browser/extensions/extension_browsertest.h" | 8 #include "chrome/browser/extensions/extension_browsertest.h" |
| 9 #include "content/public/test/browser_test_utils.h" | 9 #include "content/public/test/browser_test_utils.h" |
| 10 #include "content/public/test/test_utils.h" | 10 #include "content/public/test/test_utils.h" |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 }; | 46 }; |
| 47 | 47 |
| 48 class InputMethodEngineBrowserTest | 48 class InputMethodEngineBrowserTest |
| 49 : public ExtensionBrowserTest, | 49 : public ExtensionBrowserTest, |
| 50 public ::testing::WithParamInterface<TestType> { | 50 public ::testing::WithParamInterface<TestType> { |
| 51 public: | 51 public: |
| 52 InputMethodEngineBrowserTest() | 52 InputMethodEngineBrowserTest() |
| 53 : ExtensionBrowserTest() {} | 53 : ExtensionBrowserTest() {} |
| 54 virtual ~InputMethodEngineBrowserTest() {} | 54 virtual ~InputMethodEngineBrowserTest() {} |
| 55 | 55 |
| 56 virtual void SetUpInProcessBrowserTestFixture() override { | 56 void SetUpInProcessBrowserTestFixture() override { |
| 57 ExtensionBrowserTest::SetUpInProcessBrowserTestFixture(); | 57 ExtensionBrowserTest::SetUpInProcessBrowserTestFixture(); |
| 58 } | 58 } |
| 59 | 59 |
| 60 virtual void TearDownInProcessBrowserTestFixture() override { | 60 void TearDownInProcessBrowserTestFixture() override { extension_ = NULL; } |
| 61 extension_ = NULL; | |
| 62 } | |
| 63 | 61 |
| 64 protected: | 62 protected: |
| 65 void LoadTestInputMethod() { | 63 void LoadTestInputMethod() { |
| 66 // This will load "chrome/test/data/extensions/input_ime" | 64 // This will load "chrome/test/data/extensions/input_ime" |
| 67 ExtensionTestMessageListener ime_ready_listener("ReadyToUseImeEvent", | 65 ExtensionTestMessageListener ime_ready_listener("ReadyToUseImeEvent", |
| 68 false); | 66 false); |
| 69 extension_ = LoadExtensionWithType("input_ime", GetParam()); | 67 extension_ = LoadExtensionWithType("input_ime", GetParam()); |
| 70 ASSERT_TRUE(extension_); | 68 ASSERT_TRUE(extension_); |
| 71 ASSERT_TRUE(ime_ready_listener.WaitUntilSatisfied()); | 69 ASSERT_TRUE(ime_ready_listener.WaitUntilSatisfied()); |
| 72 | 70 |
| (...skipping 914 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 987 } | 985 } |
| 988 } | 986 } |
| 989 | 987 |
| 990 IMEBridge::Get()->SetInputContextHandler(NULL); | 988 IMEBridge::Get()->SetInputContextHandler(NULL); |
| 991 IMEBridge::Get()->SetCandidateWindowHandler(NULL); | 989 IMEBridge::Get()->SetCandidateWindowHandler(NULL); |
| 992 } | 990 } |
| 993 | 991 |
| 994 } // namespace | 992 } // namespace |
| 995 } // namespace input_method | 993 } // namespace input_method |
| 996 } // namespace chromeos | 994 } // namespace chromeos |
| OLD | NEW |