chromium/components/enterprise/browser/controller/browser_dm_token_storage_unittest.cc

// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "components/enterprise/browser/controller/browser_dm_token_storage.h"

#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/test/task_environment.h"
#include "components/enterprise/browser/controller/fake_browser_dm_token_storage.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"

IsEmpty;

namespace policy {

namespace {

constexpr char kClientId1[] =;
constexpr char kClientId2[] =;
// client id with more than 64 characters (this has 65)
constexpr char kClientIdTooLong[] =;

constexpr char kEnrollmentToken1[] =;
constexpr char kEnrollmentToken2[] =;
constexpr char kDMToken1[] =;
constexpr char kDMToken2[] =;

class BrowserDMTokenStorageTestBase {};

class BrowserDMTokenStorageTest : public BrowserDMTokenStorageTestBase,
                                  public testing::Test {};

struct StoreAndRetrieveTestParams {};

class BrowserDMTokenStorageStoreAndRetrieveTest
    : public BrowserDMTokenStorageTestBase,
      public testing::TestWithParam<StoreAndRetrieveTestParams> {};

}  // namespace

INSTANTIATE_TEST_SUITE_P();

TEST_F(BrowserDMTokenStorageTest, RetrieveClientId) {}

TEST_F(BrowserDMTokenStorageTest, RetrieveEnrollmentToken) {}

TEST_P(BrowserDMTokenStorageStoreAndRetrieveTest, StoreDMToken) {}

TEST_F(BrowserDMTokenStorageTest, InvalidateDMToken) {}

TEST_F(BrowserDMTokenStorageTest, ClearDMToken) {}

TEST_P(BrowserDMTokenStorageStoreAndRetrieveTest, RetrieveDMToken) {}

TEST_F(BrowserDMTokenStorageTest, ShouldDisplayErrorMessageOnFailure) {}

TEST_F(BrowserDMTokenStorageTest, SetDelegate) {}

TEST_F(BrowserDMTokenStorageTest, InvalidClientId) {}

TEST_F(BrowserDMTokenStorageTest, ClientIdTooLong) {}

}  // namespace policy