chromium/chrome/browser/policy/browser_dm_token_storage_linux_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 "chrome/browser/policy/browser_dm_token_storage_linux.h"

#include <iostream>
#include <memory>

#include "base/files/file_util.h"
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/path_service.h"
#include "base/run_loop.h"
#include "base/strings/utf_string_conversions.h"
#include "base/test/scoped_path_override.h"
#include "chrome/common/chrome_paths.h"
#include "content/public/test/browser_task_environment.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"

IsEmpty;

namespace policy {

namespace {

const char kDmTokenBaseDir[] =);
const char kEnrollmentTokenFilename[] =);

const char kMachineId[] =;
const char kExpectedClientId[] =;  // Corresponds to kMachineId.
const char kEnrollmentToken[] =;
const char kDMToken[] =;

}  // namespace

class MockBrowserDMTokenStorageLinux : public BrowserDMTokenStorageLinux {};

class BrowserDMTokenStorageLinuxTest : public testing::Test {};

TEST_F(BrowserDMTokenStorageLinuxTest, InitClientId) {}

TEST_F(BrowserDMTokenStorageLinuxTest, InitEnrollmentToken) {}

TEST_F(BrowserDMTokenStorageLinuxTest, InitDMToken) {}

TEST_F(BrowserDMTokenStorageLinuxTest, InitDMTokenWithoutDirectory) {}

class TestStoreDMTokenDelegate {};

TEST_F(BrowserDMTokenStorageLinuxTest, SaveDMToken) {}

TEST_F(BrowserDMTokenStorageLinuxTest, DeleteDMToken) {}

TEST_F(BrowserDMTokenStorageLinuxTest, DeleteEmptyDMToken) {}

}  // namespace policy