#include "chrome/browser/ui/views/translate/translate_bubble_view.h"
#include <memory>
#include <string>
#include "base/command_line.h"
#include "base/functional/bind.h"
#include "base/strings/utf_string_conversions.h"
#include "build/build_config.h"
#include "chrome/browser/translate/chrome_translate_client.h"
#include "chrome/browser/translate/translate_test_utils.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_commands.h"
#include "chrome/browser/ui/browser_tabstrip.h"
#include "chrome/browser/ui/tabs/tab_strip_model.h"
#include "chrome/browser/ui/test/test_browser_dialog.h"
#include "chrome/browser/ui/translate/translate_bubble_model.h"
#include "chrome/browser/ui/views/translate/translate_bubble_controller.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/grit/generated_resources.h"
#include "chrome/test/base/in_process_browser_test.h"
#include "chrome/test/base/ui_test_utils.h"
#include "components/translate/core/browser/translate_manager.h"
#include "components/translate/core/common/translate_switches.h"
#include "content/public/browser/web_contents.h"
#include "content/public/common/content_switches.h"
#include "content/public/test/browser_test.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/ui_base_features.h"
#include "ui/events/keycodes/dom/dom_code.h"
#include "ui/views/controls/button/menu_button.h"
#include "ui/views/test/ax_event_counter.h"
namespace translate {
class TranslateBubbleViewBrowserTest : public InProcessBrowserTest { … };
IN_PROC_BROWSER_TEST_F(TranslateBubbleViewBrowserTest,
CloseBrowserWithoutTranslating) { … }
IN_PROC_BROWSER_TEST_F(TranslateBubbleViewBrowserTest,
CloseLastTabWithoutTranslating) { … }
IN_PROC_BROWSER_TEST_F(TranslateBubbleViewBrowserTest,
CloseAnotherTabWithoutTranslating) { … }
IN_PROC_BROWSER_TEST_F(TranslateBubbleViewBrowserTest, AlertAccessibleEvent) { … }
class TranslateBubbleVisualTest
: public SupportsTestDialog<TranslateBubbleViewBrowserTest> { … };
IN_PROC_BROWSER_TEST_F(TranslateBubbleVisualTest, InvokeUi_error) { … }
IN_PROC_BROWSER_TEST_F(TranslateBubbleVisualTest, InvokeUi_before_translate) { … }
IN_PROC_BROWSER_TEST_F(TranslateBubbleVisualTest, InvokeUi_select_source) { … }
}