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

Unified Diff: ui/aura/mus/input_method_mus_unittest.cc

Issue 2728373003: Fixs bug resulting in double event delivery in mus (Closed)
Patch Set: global disable Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/aura/mus/input_method_mus.cc ('k') | ui/aura/test/mus/input_method_mus_test_api.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/mus/input_method_mus_unittest.cc
diff --git a/ui/aura/mus/input_method_mus_unittest.cc b/ui/aura/mus/input_method_mus_unittest.cc
index 19bcb38b8cf4f17a03b6c397feefdb83ef9d7ce4..bafcfe4593c1886a6e64eac51daa9315425d4225 100644
--- a/ui/aura/mus/input_method_mus_unittest.cc
+++ b/ui/aura/mus/input_method_mus_unittest.cc
@@ -6,6 +6,7 @@
#include "services/ui/public/interfaces/ime/ime.mojom.h"
#include "ui/aura/test/aura_test_base.h"
+#include "ui/aura/test/mus/input_method_mus_test_api.h"
#include "ui/aura/window.h"
#include "ui/base/ime/input_method_delegate.h"
@@ -61,23 +62,6 @@ class TestInputMethod : public ui::mojom::InputMethod {
using InputMethodMusTest = test::AuraTestBaseMus;
-class InputMethodMusTestApi {
- public:
- static void SetInputMethod(InputMethodMus* input_method_mus,
- ui::mojom::InputMethod* input_method) {
- input_method_mus->input_method_ = input_method;
- }
- static void CallSendKeyEventToInputMethod(
- InputMethodMus* input_method_mus,
- const ui::KeyEvent& event,
- std::unique_ptr<EventResultCallback> ack_callback) {
- input_method_mus->SendKeyEventToInputMethod(event, std::move(ack_callback));
- }
-
- private:
- DISALLOW_IMPLICIT_CONSTRUCTORS(InputMethodMusTestApi);
-};
-
namespace {
// Used in closure supplied to processing the event.
« no previous file with comments | « ui/aura/mus/input_method_mus.cc ('k') | ui/aura/test/mus/input_method_mus_test_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698