| Index: chrome/browser/extensions/api/automation/automation_apitest.cc
|
| diff --git a/chrome/browser/extensions/api/automation/automation_apitest.cc b/chrome/browser/extensions/api/automation/automation_apitest.cc
|
| index 88d7b90af69fb7016cba945c55f65cda6fd8cebd..3f1dd68e938c358efd0f7d44f32a88c59f71ce79 100644
|
| --- a/chrome/browser/extensions/api/automation/automation_apitest.cc
|
| +++ b/chrome/browser/extensions/api/automation/automation_apitest.cc
|
| @@ -31,6 +31,7 @@
|
| #include "ui/accessibility/ax_tree.h"
|
| #include "ui/accessibility/ax_tree_serializer.h"
|
| #include "ui/accessibility/tree_generator.h"
|
| +#include "ui/display/display_switches.h"
|
|
|
| #if defined(OS_CHROMEOS)
|
| #include "ash/accelerators/accelerator_controller.h"
|
| @@ -297,4 +298,22 @@ IN_PROC_BROWSER_TEST_F(AutomationApiTest, HitTest) {
|
| << message_;
|
| }
|
|
|
| +#if defined(OS_CHROMEOS)
|
| +
|
| +class AutomationApiTestWithDeviceScaleFactor : public AutomationApiTest {
|
| + protected:
|
| + void SetUpCommandLine(base::CommandLine* command_line) override {
|
| + AutomationApiTest::SetUpCommandLine(command_line);
|
| + command_line->AppendSwitchASCII(switches::kForceDeviceScaleFactor, "2.0");
|
| + }
|
| +};
|
| +
|
| +IN_PROC_BROWSER_TEST_F(AutomationApiTestWithDeviceScaleFactor, LocationScaled) {
|
| + StartEmbeddedTestServer();
|
| + ASSERT_TRUE(RunPlatformAppTest("automation/tests/location_scaled"))
|
| + << message_;
|
| +}
|
| +
|
| +#endif // defined(OS_CHROMEOS)
|
| +
|
| } // namespace extensions
|
|
|