blob: 97d9e4b18b80d9494f830f15b04cbf728848c639 [file] [log] [blame]
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <atlcomcli.h>
#include "base/strings/string16.h"
struct ICredentialProviderCredential;
namespace base {
class CommandLine;
namespace credential_provider {
class FakeOSUserManager;
namespace testing {
extern const char kDefaultEmail[];
extern const char kDefaultGaiaId[];
extern const wchar_t kDefaultUsername[];
// Helper class used to run and wait for a fake GLS process to validate the
// functionality of a GCPW credential.
class FakeGlsRunHelper {
explicit FakeGlsRunHelper(FakeOSUserManager* fake_os_user_manager);
HRESULT StartLogonProcess(ICredentialProviderCredential* cred, bool succeeds);
HRESULT WaitForLogonProcess(ICredentialProviderCredential* cred);
HRESULT StartLogonProcessAndWait(ICredentialProviderCredential* cred);
static HRESULT GetFakeGlsCommandline(
const std::string& gls_email,
const std::string& gaia_id_override,
const base::string16& start_gls_event_name,
base::CommandLine* command_line);
} // namespace testing
} // namespace credential_provider