#include "base/files/file.h"
#include "base/files/file_path.h"
#include "base/files/file_util.h"
#include "base/strings/strcat.h"
#include "base/strings/string_util.h"
#include "base/test/bind.h"
#include "base/threading/thread_restrictions.h"
#include "chrome/browser/extensions/api/web_authentication_proxy/remote_session_state_change.h"
#include "chrome/browser/extensions/api/web_authentication_proxy/web_authentication_proxy_service.h"
#include "chrome/browser/extensions/extension_apitest.h"
#include "chrome/browser/extensions/extension_management_test_util.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/test/base/ui_test_utils.h"
#include "components/policy/core/browser/browser_policy_connector.h"
#include "components/policy/core/common/mock_configuration_policy_provider.h"
#include "content/public/test/browser_test.h"
#include "content/public/test/browser_test_utils.h"
#include "extensions/browser/browsertest_util.h"
#include "extensions/browser/permissions_manager.h"
#include "extensions/common/extension.h"
#include "extensions/test/extension_test_message_listener.h"
#include "extensions/test/result_catcher.h"
#include "net/dns/mock_host_resolver.h"
#include "net/test/embedded_test_server/embedded_test_server.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace extensions {
namespace {
constexpr char kTestCredentialId[] = …;
constexpr char kTestDomain[] = …;
constexpr char kJsErrorPrefix[] = …;
MATCHER_P(IsJsError, name, "") { … }
MATCHER_P2(IsJsErrorWithMessage, name, message, "") { … }
class WebAuthenticationProxyApiTest : public ExtensionApiTest { … };
IN_PROC_BROWSER_TEST_F(WebAuthenticationProxyApiTest, AttachDetach) { … }
IN_PROC_BROWSER_TEST_F(WebAuthenticationProxyApiTest, DISABLED_AttachReload) { … }
IN_PROC_BROWSER_TEST_F(WebAuthenticationProxyApiTest, AttachSecondExtension) { … }
IN_PROC_BROWSER_TEST_F(WebAuthenticationProxyApiTest, IsUVPAA) { … }
IN_PROC_BROWSER_TEST_F(WebAuthenticationProxyApiTest,
CallIsUVPAAWhileNotAttached) { … }
IN_PROC_BROWSER_TEST_F(WebAuthenticationProxyApiTest, IsUVPAAResolvesOnDetach) { … }
IN_PROC_BROWSER_TEST_F(WebAuthenticationProxyApiTest, MakeCredential) { … }
IN_PROC_BROWSER_TEST_F(WebAuthenticationProxyApiTest, MakeCredentialError) { … }
IN_PROC_BROWSER_TEST_F(WebAuthenticationProxyApiTest,
MakeCredentialResolvesOnDetach) { … }
IN_PROC_BROWSER_TEST_F(WebAuthenticationProxyApiTest, MakeCredentialCancel) { … }
IN_PROC_BROWSER_TEST_F(WebAuthenticationProxyApiTest, GetAssertion) { … }
IN_PROC_BROWSER_TEST_F(WebAuthenticationProxyApiTest, GetAssertionError) { … }
IN_PROC_BROWSER_TEST_F(WebAuthenticationProxyApiTest,
GetAssertionResolvesOnDetach) { … }
IN_PROC_BROWSER_TEST_F(WebAuthenticationProxyApiTest, GetAssertionCancel) { … }
IN_PROC_BROWSER_TEST_F(WebAuthenticationProxyApiTest,
RemoteSessionStateChange) { … }
IN_PROC_BROWSER_TEST_F(WebAuthenticationProxyApiTest, IncognitoSpanning) { … }
IN_PROC_BROWSER_TEST_F(WebAuthenticationProxyApiTest, IncognitoNotAllowed) { … }
IN_PROC_BROWSER_TEST_F(WebAuthenticationProxyApiTest,
SplitIncognitoAndRegular) { … }
IN_PROC_BROWSER_TEST_F(WebAuthenticationProxyApiTest, SplitRegularOnly) { … }
IN_PROC_BROWSER_TEST_F(WebAuthenticationProxyApiTest, SplitIncognitoOnly) { … }
IN_PROC_BROWSER_TEST_F(WebAuthenticationProxyApiTest, SplitModeDestruction) { … }
IN_PROC_BROWSER_TEST_F(WebAuthenticationProxyApiTest, UserHostPermissions) { … }
class WebAuthenticationProxyApiTestWithPolicyOverride
: public WebAuthenticationProxyApiTest { … };
IN_PROC_BROWSER_TEST_F(WebAuthenticationProxyApiTestWithPolicyOverride,
BlockedHosts) { … }
}
}