chromium/third_party/blink/renderer/bindings/core/v8/binding_security_test.cc

// Copyright 2017 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/bindings/core/v8/binding_security.h"

#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/renderer/core/dom/document.h"
#include "third_party/blink/renderer/core/loader/document_loader.h"
#include "third_party/blink/renderer/core/testing/sim/sim_request.h"
#include "third_party/blink/renderer/core/testing/sim/sim_test.h"
#include "third_party/blink/renderer/platform/instrumentation/use_counter.h"
#include "third_party/blink/renderer/platform/testing/unit_test_helpers.h"

namespace blink {

namespace {
const char kMainFrame[] =;
const char kSameOriginTarget[] =;
const char kSameOriginDomainTarget[] =;
const char kCrossOriginTarget[] =;

const char kTargetHTML[] =;
const char kSameOriginDomainTargetHTML[] =;
}

class BindingSecurityCounterTest
    : public SimTest,
      public testing::WithParamInterface<const char*> {};

INSTANTIATE_TEST_SUITE_P();

TEST_P(BindingSecurityCounterTest, CrossOriginWindow) {}

TEST_P(BindingSecurityCounterTest, SameOriginWindow) {}

TEST_P(BindingSecurityCounterTest, SameOriginDomainWindow) {}

TEST_P(BindingSecurityCounterTest, CrossOriginFrame) {}

TEST_P(BindingSecurityCounterTest, SameOriginFrame) {}

TEST_P(BindingSecurityCounterTest, SameOriginDomainFrame) {}

}  // namespace blink