chromium/chrome/browser/extensions/extension_shared_array_buffer_browsertest.cc

// Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include <tuple>

#include "base/feature_list.h"
#include "base/files/file_path.h"
#include "base/strings/stringprintf.h"
#include "base/test/scoped_feature_list.h"
#include "base/values.h"
#include "chrome/browser/extensions/extension_apitest.h"
#include "content/public/test/browser_test.h"
#include "extensions/common/extension_features.h"
#include "extensions/test/test_extension_dir.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace extensions {

constexpr char kWorkerJS[] =;

constexpr char kBackgroundJS_SabDisallowed[] =;

constexpr char kBackgroundJS_SabAllowed[] =;

// Parameterized on tuple of
// <is_sab_allowed_unconditionally, is_cross_origin_isolated, is_platform_app>.
class SharedArrayBufferTest
    : public ExtensionApiTest,
      public ::testing::WithParamInterface<std::tuple<bool, bool, bool>> {};

IN_PROC_BROWSER_TEST_P(SharedArrayBufferTest, TransferToWorker) {}

INSTANTIATE_TEST_SUITE_P();

}  // namespace extensions