#include "chrome/browser/ui/views/translate/translate_bubble_view.h"
#include <memory>
#include <utility>
#include "base/memory/raw_ptr.h"
#include "base/strings/utf_string_conversions.h"
#include "base/test/scoped_feature_list.h"
#include "build/build_config.h"
#include "chrome/browser/ui/translate/translate_bubble_model.h"
#include "chrome/grit/generated_resources.h"
#include "chrome/test/views/chrome_views_test_base.h"
#include "components/translate/core/browser/translate_prefs.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/events/event_constants.h"
#include "ui/events/event_utils.h"
#include "ui/events/keycodes/dom/dom_code.h"
#include "ui/events/types/event_type.h"
#include "ui/gfx/range/range.h"
#include "ui/views/bubble/bubble_frame_view.h"
#include "ui/views/controls/button/checkbox.h"
#include "ui/views/controls/button/menu_button.h"
#include "ui/views/controls/combobox/combobox.h"
#include "ui/views/controls/styled_label.h"
#include "ui/views/test/button_test_api.h"
#include "ui/views/widget/widget.h"
namespace {
class MockTranslateBubbleModel : public TranslateBubbleModel { … };
}
class TranslateBubbleViewTest : public ChromeViewsTestBase { … };
TEST_F(TranslateBubbleViewTest, TargetLanguageTabTriggersTranslate) { … }
TEST_F(TranslateBubbleViewTest, OptionsMenuNeverTranslateLanguage) { … }
TEST_F(TranslateBubbleViewTest, OptionsMenuNeverTranslateSite) { … }
TEST_F(TranslateBubbleViewTest, AlwaysTranslateCheckboxShortcut) { … }
TEST_F(TranslateBubbleViewTest, AlwaysTranslateCheckboxAndCloseButton) { … }
TEST_F(TranslateBubbleViewTest, AlwaysTranslateCheckboxAndDoneButton) { … }
TEST_F(TranslateBubbleViewTest, SourceResetButton) { … }
TEST_F(TranslateBubbleViewTest, TargetResetButton) { … }
TEST_F(TranslateBubbleViewTest, SourceDoneButton) { … }
TEST_F(TranslateBubbleViewTest, TargetDoneButton) { … }
TEST_F(TranslateBubbleViewTest, DoneButtonWithoutTranslating) { … }
TEST_F(TranslateBubbleViewTest, OptionsMenuRespectsBlocklistSite) { … }
TEST_F(TranslateBubbleViewTest, MenuOptionsHiddenOnUnknownSource) { … }
TEST_F(TranslateBubbleViewTest, AlwaysTranslateLanguageMenuItem) { … }
TEST_F(TranslateBubbleViewTest, AlwaysTranslateTriggerTranslation) { … }
TEST_F(TranslateBubbleViewTest, TabSelectedAfterTranslation) { … }
TEST_F(TranslateBubbleViewTest, SourceLanguageTabUpdatesViewState) { … }