blob: 7b3af500019b11f68e30f5f153181241217eae43 [file] [log] [blame]
// Copyright (c) 2010 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 "chrome/browser/extensions/extension_apitest.h"
#include "content/public/test/browser_test.h"
using ExtensionModuleApiTest = extensions::ExtensionApiTest;
IN_PROC_BROWSER_TEST_F(ExtensionModuleApiTest, CognitoFile) {
ASSERT_TRUE(RunExtensionTest({.name = "extension_module/cognito_file"},
{.allow_file_access = true}))
<< message_;
}
IN_PROC_BROWSER_TEST_F(ExtensionModuleApiTest, IncognitoFile) {
ASSERT_TRUE(
RunExtensionTest({.name = "extension_module/incognito_file"},
{.allow_in_incognito = true, .allow_file_access = true}))
<< message_;
}
IN_PROC_BROWSER_TEST_F(ExtensionModuleApiTest, CognitoNoFile) {
ASSERT_TRUE(RunExtensionTest("extension_module/cognito_nofile")) << message_;
}
IN_PROC_BROWSER_TEST_F(ExtensionModuleApiTest, IncognitoNoFile) {
ASSERT_TRUE(RunExtensionTest({.name = "extension_module/incognito_nofile"},
{.allow_in_incognito = true}))
<< message_;
}