| // 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_; |
| } |