blob: b9ea7444494184df8ef382fc0bbada114c353806 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
// Copyright 2020 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.
#ifndef CHROME_BROWSER_NET_PROFILE_NETWORK_CONTEXT_SERVICE_TEST_UTILS_H_
#define CHROME_BROWSER_NET_PROFILE_NETWORK_CONTEXT_SERVICE_TEST_UTILS_H_
#include "chrome/browser/ui/browser.h"
class AmbientAuthenticationTestHelper {
public:
AmbientAuthenticationTestHelper() = default;
static bool IsAmbientAuthAllowedForProfile(Profile* profile);
static bool IsIncognitoAllowedInPolicy(int policy_value);
static bool IsGuestAllowedInPolicy(int policy_value);
static Profile* GetGuestProfile();
// OpenGuestBrowser method code borrowed from
// chrome/browser/profiles/profile_window_browsertest.cc
static Browser* OpenGuestBrowser();
};
#endif // CHROME_BROWSER_NET_PROFILE_NETWORK_CONTEXT_SERVICE_TEST_UTILS_H_
|