#include "content/browser/mojo_binder_policy_applier.h"
#include "base/functional/callback.h"
#include "base/memory/weak_ptr.h"
#include "base/test/bind.h"
#include "base/test/task_environment.h"
#include "content/browser/mojo_binder_policy_map_impl.h"
#include "content/public/test/mojo_capability_control_test_interfaces.mojom.h"
#include "mojo/public/cpp/bindings/generic_pending_receiver.h"
#include "mojo/public/cpp/bindings/receiver.h"
#include "mojo/public/cpp/bindings/remote.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace content {
class TestReceiverCollector : public mojom::TestInterfaceForDefer,
public mojom::TestInterfaceForGrant,
public mojom::TestInterfaceForCancel,
public mojom::TestInterfaceForUnexpected { … };
class MojoBinderPolicyApplierTest : public testing::Test,
mojom::MojoContextProvider { … };
TEST_F(MojoBinderPolicyApplierTest, GrantInEnforce) { … }
TEST_F(MojoBinderPolicyApplierTest, DeferInEnforce) { … }
TEST_F(MojoBinderPolicyApplierTest, CancelInEnforce) { … }
TEST_F(MojoBinderPolicyApplierTest, GrantInPrepareToGrantAll) { … }
TEST_F(MojoBinderPolicyApplierTest, DeferInPrepareToGrantAll) { … }
TEST_F(MojoBinderPolicyApplierTest, CancelInPrepareToGrantAll) { … }
TEST_F(MojoBinderPolicyApplierTest, UnexpectedInPrepareToGrantAll) { … }
TEST_F(MojoBinderPolicyApplierTest, BindInterfacesAfterResolving) { … }
TEST_F(MojoBinderPolicyApplierTest, DropDeferredBinders) { … }
}