// Copyright 2019 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/ui/views/content_test_utils.h" #include "base/run_loop.h" #include "base/task/single_thread_task_runner.h" #include "content/public/test/browser_test_utils.h" #include "testing/gtest/include/gtest/gtest.h" #include "ui/events/test/event_generator.h" #if defined(USE_AURA) #include "ui/aura/window.h" #endif // defined(USE_AURA) namespace { // Helper to use inside a loop instead of using RunLoop::RunUntilIdle() to avoid // the loop being a busy loop that prevents renderer from doing its job. Use // only when there is no better way to synchronize. void GiveItSomeTime(base::TimeDelta delta) { … } } // namespace void TestTextInputViaKeyEvent(content::WebContents* contents) { … }