chromium/third_party/blink/renderer/core/loader/web_bundle/script_web_bundle_rule_test.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 "third_party/blink/renderer/core/loader/web_bundle/script_web_bundle_rule.h"

#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/renderer/platform/heap/garbage_collected.h"

namespace blink {

namespace {

class MockConsoleLogger final : public GarbageCollected<MockConsoleLogger>,
                                public ConsoleLogger {};

}  // namespace

TEST(ScriptWebBundleRuleTest, Empty) {}

TEST(ScriptWebBundleRuleTest, Basic) {}

TEST(ScriptWebBundleRuleTest, SourceOnly) {}

TEST(ScriptWebBundleRuleTest, ResourcesShouldBeResolvedOnBundleURL) {}

TEST(ScriptWebBundleRuleTest, ScopesShouldBeResolvedOnBundleURL) {}

TEST(ScriptWebBundleRuleTest, CredentialsDefaultIsSameOrigin) {}

TEST(ScriptWebBundleRuleTest, CredentialsSameOrigin) {}

TEST(ScriptWebBundleRuleTest, CredentialsInclude) {}

TEST(ScriptWebBundleRuleTest, CredentialsOmit) {}

TEST(ScriptWebBundleRuleTest, CredentialsInvalidValueIsSameOrigin) {}

TEST(ScriptWebBundleRuleTest, CredentialsExtraSpeceIsNotAllowed) {}

TEST(ScriptWebBundleRuleTest, CredentialsIsCaseSensitive) {}

TEST(ScriptWebBundleRuleTest, TopLevelIsNotAnObject) {}

TEST(ScriptWebBundleRuleTest, MissingSource) {}

TEST(ScriptWebBundleRuleTest, WrongSourceType) {}

TEST(ScriptWebBundleRuleTest, BadSourceURL) {}

TEST(ScriptWebBundleRuleTest, NoScopesNorResources) {}

TEST(ScriptWebBundleRuleTest, InvalidScopesType) {}

TEST(ScriptWebBundleRuleTest, InvalidResourcesType) {}

TEST(ScriptWebBundleRuleTest, UnknownKey) {}

}  // namespace blink