#include "google_apis/gaia/gaia_urls.h"
#include <memory>
#include "base/base_paths.h"
#include "base/command_line.h"
#include "base/files/file_path.h"
#include "base/memory/ptr_util.h"
#include "base/memory/raw_ptr.h"
#include "base/path_service.h"
#include "base/test/scoped_command_line.h"
#include "build/build_config.h"
#include "build/chromeos_buildflags.h"
#include "google_apis/gaia/gaia_config.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"
namespace {
#if BUILDFLAG(IS_ANDROID)
const char kSigninChromeSyncKeysPlatformSuffix[] = "android";
#elif BUILDFLAG(IS_IOS)
const char kSigninChromeSyncKeysPlatformSuffix[] = "ios";
#elif BUILDFLAG(IS_CHROMEOS)
const char kSigninChromeSyncKeysPlatformSuffix[] = "chromeos";
#else
const char kSigninChromeSyncKeysPlatformSuffix[] = …;
#endif
base::FilePath GetTestFilePath(const std::string& relative_path) { … }
}
class GaiaUrlsTest : public ::testing::Test { … };
TEST_F(GaiaUrlsTest, InitializeDefault_AllUrls) { … }
TEST_F(GaiaUrlsTest, InitializeDefault_URLSwitches) { … }
TEST_F(GaiaUrlsTest, InitializeFromConfig_OneUrl) { … }
TEST_F(GaiaUrlsTest, InitializeFromConfig_OneBaseUrl) { … }
TEST_F(GaiaUrlsTest, InitializeFromConfig_PrecedenceOverSwitches) { … }
TEST_F(GaiaUrlsTest, InitializeFromConfig_AllUrls) { … }
TEST_F(GaiaUrlsTest, InitializeFromConfig_AllBaseUrls) { … }
TEST_F(GaiaUrlsTest, InitializeFromConfigContents) { … }
TEST_F(GaiaUrlsTest, InitializeFromConfig_BadUrl) { … }
TEST_F(GaiaUrlsTest, InitializeFromConfig_BadUrlKey) { … }
TEST_F(GaiaUrlsTest, InitializeFromConfig_BadUrlsKey) { … }
TEST_F(GaiaUrlsTest, InitializeFromConfig_FileNotFound) { … }
TEST_F(GaiaUrlsTest, InitializeFromConfig_NotAJson) { … }