chromium/content/browser/mojo_binder_policy_map_impl_unittest.cc

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

#include "content/browser/mojo_binder_policy_map_impl.h"

#include "base/test/gtest_util.h"
#include "base/test/task_environment.h"
#include "content/browser/browser_interface_binders.h"
#include "content/public/test/mojo_capability_control_test_interfaces.mojom.h"
#include "content/test/test_content_browser_client.h"
#include "mojo/public/cpp/bindings/binder_map.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace content {

namespace {

class MojoBinderPolicyMapImplTest : public testing::Test {};

// Verifies the SetNonAssociatedPolicy method works.
TEST_F(MojoBinderPolicyMapImplTest, SetNonAssociatedPolicy) {}

// Verifies the SetAssociatedPolicy method works.
TEST_F(MojoBinderPolicyMapImplTest, SetAssociatedPolicy) {}

// Verifies if the given interface is not found in the map,
// GetNonAssociatedMojoBinderPolicy will return the given `default_policy`.
TEST_F(MojoBinderPolicyMapImplTest, InterfaceNotFound) {}

class MojoBinderPolicyTestContentBrowserClient
    : public TestContentBrowserClient {};

// Verifies the embedder can register its policies via
// ContentBrowserClient::RegisterMojoBinderPoliciesForSameOriginPrerendering.
TEST_F(MojoBinderPolicyMapImplTest, RegisterMojoBinderPolicyMap) {}

}  // namespace

}  // namespace content