#include "components/policy/core/common/cloud/user_info_fetcher.h"
#include "base/test/metrics/histogram_tester.h"
#include "base/test/task_environment.h"
#include "base/values.h"
#include "google_apis/gaia/google_service_auth_error.h"
#include "net/http/http_status_code.h"
#include "services/network/public/cpp/weak_wrapper_shared_url_loader_factory.h"
#include "services/network/test/test_url_loader_factory.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
_;
namespace policy {
namespace {
static const char kUserInfoUrl[] = …;
static const char kUserInfoResponse[] = …;
class MockUserInfoFetcherDelegate : public UserInfoFetcher::Delegate { … };
MATCHER_P(MatchDict, expected, "matches Value::Dict") { … }
class UserInfoFetcherTest : public testing::Test { … };
TEST_F(UserInfoFetcherTest, FailedFetch) { … }
TEST_F(UserInfoFetcherTest, SuccessfulFetch) { … }
TEST_F(UserInfoFetcherTest, FetchResponseNotParsableToJSON) { … }
TEST_F(UserInfoFetcherTest, FetchResponseNotDict) { … }
}
}