#include "chrome/browser/device_identity/device_oauth2_token_store_desktop.h"
#include "base/base64.h"
#include "base/test/bind.h"
#include "chrome/common/pref_names.h"
#include "chrome/test/base/scoped_testing_local_state.h"
#include "chrome/test/base/testing_browser_process.h"
#include "components/os_crypt/sync/os_crypt.h"
#include "components/os_crypt/sync/os_crypt_mocker.h"
#include "components/policy/core/common/policy_pref_names.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace {
const char kTestRobotEmail[] = …;
const char kTestOtherRobotEmail[] = …;
class TestObserver : public DeviceOAuth2TokenStore::Observer { … };
}
class DeviceOAuth2TokenStoreDesktopTest : public testing::Test { … };
TEST_F(DeviceOAuth2TokenStoreDesktopTest, InitWithoutSavedToken) { … }
TEST_F(DeviceOAuth2TokenStoreDesktopTest, InitWithSavedToken) { … }
TEST_F(DeviceOAuth2TokenStoreDesktopTest, ObserverNotifiedWhenAccountChanges) { … }
TEST_F(DeviceOAuth2TokenStoreDesktopTest, SaveToken) { … }