#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 { … };
}
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) { … }
}