New issue
Advanced search Search tips

Issue 905518 link

Starred by 1 user

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

Support mocking the InputMethodMus instance in WindowTreeHostMus

Project Member Reported by shuchen@chromium.org, Nov 15

Issue description

Currently InputMethodMus instance is created directly in WindowTreeHostMus, therefore it doesn't support mocking in the tests.

Ideally, WindowTreeHostMus should leverage InputMethodFactory to create the input method instance. The test/mock setup is handled there.
However, the InputMethodMus constructor requires different parameters, and some test code requires to access the internal members of InputMethodMus (e.g. InputMethodMusTestApi).

So some refactoring needs to be done before InputMethodMus can be mock'ed.

 

Sign in to add a comment