| // Copyright 2018 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #include "chrome/browser/extensions/extension_apitest.h" |
| #include "chrome/browser/ui/tabs/tab_strip_model.h" |
| #include "ui/base/ui_base_features.h" |
| |
| namespace extensions { |
| |
| using AccessibilityPrivateApiTest = ExtensionApiTest; |
| |
| #if defined(OS_CHROMEOS) |
| IN_PROC_BROWSER_TEST_F(AccessibilityPrivateApiTest, SendSyntheticKeyEvent) { |
| // TODO(crbug.com/876043): Mash support. |
| if (features::IsUsingWindowService()) |
| return; |
| |
| ASSERT_TRUE(RunExtensionSubtest("accessibility_private/", |
| "send_synthetic_key_event.html")) |
| << message_; |
| } |
| #endif // defined (OS_CHROMEOS) |
| |
| } // namespace extensions |