#include "components/translate/core/browser/translate_ui_delegate.h"
#include "base/command_line.h"
#include "base/functional/bind.h"
#include "base/strings/utf_string_conversions.h"
#include "base/test/scoped_feature_list.h"
#include "build/build_config.h"
#include "build/chromeos_buildflags.h"
#include "components/infobars/core/infobar.h"
#include "components/language/core/browser/language_model.h"
#include "components/language/core/browser/language_prefs.h"
#include "components/language/core/browser/pref_names.h"
#include "components/language/core/common/language_experiments.h"
#include "components/pref_registry/pref_registry_syncable.h"
#include "components/sync_preferences/testing_pref_service_syncable.h"
#include "components/translate/core/browser/mock_translate_client.h"
#include "components/translate/core/browser/mock_translate_driver.h"
#include "components/translate/core/browser/mock_translate_ranker.h"
#include "components/translate/core/browser/translate_client.h"
#include "components/translate/core/browser/translate_download_manager.h"
#include "components/translate/core/browser/translate_infobar_delegate.h"
#include "components/translate/core/browser/translate_manager.h"
#include "components/translate/core/browser/translate_pref_names.h"
#include "components/translate/core/browser/translate_prefs.h"
#include "components/variations/scoped_variations_ids_provider.h"
#include "components/variations/variations_associated_data.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/metrics_proto/translate_event.pb.h"
#include "url/gurl.h"
namespace translate {
namespace {
_;
MockTranslateClient;
MockTranslateDriver;
MockTranslateRanker;
Return;
Test;
class MockLanguageModel : public language::LanguageModel { … };
class TranslateUIDelegateTest : public ::testing::Test { … };
TEST_F(TranslateUIDelegateTest, CheckDeclinedFalse) { … }
TEST_F(TranslateUIDelegateTest, CheckDeclinedTrue) { … }
TEST_F(TranslateUIDelegateTest, SetLanguageBlocked) { … }
TEST_F(TranslateUIDelegateTest, SetShouldAlwaysTranslateUnblocksSite) { … }
TEST_F(TranslateUIDelegateTest, ShouldAlwaysTranslateBeCheckedByDefaultNever) { … }
TEST_F(TranslateUIDelegateTest, ShouldShowAlwaysTranslateShortcut) { … }
TEST_F(TranslateUIDelegateTest, ShouldShowNeverTranslateShortcut) { … }
TEST_F(TranslateUIDelegateTest, ContentLanguagesWhenPrefChangeObserverEnabled) { … }
TEST_F(TranslateUIDelegateTest,
ContentLanguagesWhenPrefChangeObserverDisabled) { … }
TEST_F(TranslateUIDelegateTest, ContentLanguagesWhenDisabled) { … }
TEST_F(TranslateUIDelegateTest, UpdateSourceLanguageTranslateEvent) { … }
TEST_F(TranslateUIDelegateTest, UpdateTargetLanguageTranslateEvent) { … }
}
TEST_F(TranslateUIDelegateTest, GetPageHost) { … }
}