#include "base/strings/strcat.h"
#include "components/policy/core/common/cloud/cloud_policy_constants.h"
#include "components/policy/test_support/client_storage.h"
#include "components/policy/test_support/embedded_policy_test_server_test_base.h"
#include "components/policy/test_support/policy_storage.h"
#include "components/policy/test_support/request_handler_for_register_browser.h"
#include "device_management_backend.pb.h"
#include "net/http/http_status_code.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
em;
namespace policy {
namespace {
IsEmpty;
UnorderedElementsAreArray;
constexpr char kDeviceId[] = …;
constexpr char kBrandSerial[] = …;
constexpr char kTrimmedSHA256HashForBrandSerial[] = …;
constexpr char kStateKey1[] = …;
constexpr char kStateKey2[] = …;
constexpr char kSHA256HashForStateKey1[] = …;
constexpr char kSHA256HashForStateKey2[] = …;
}
class RequestHandlerForAutoEnrollmentTest
: public EmbeddedPolicyTestServerTestBase { … };
TEST_F(RequestHandlerForAutoEnrollmentTest, HandleRequest_ForcedEnrollment) { … }
TEST_F(RequestHandlerForAutoEnrollmentTest,
HandleRequest_ForcedEnrollmentMismatchingRemainder) { … }
TEST_F(RequestHandlerForAutoEnrollmentTest, HandleRequest_ForcedReEnrollment) { … }
TEST_F(RequestHandlerForAutoEnrollmentTest, HandleRequest_Modulus32) { … }
}