1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22
   23

content / public / test / policy_container_utils.cc [blame]

// 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/public/test/policy_container_utils.h"

#include <tuple>

#include "third_party/blink/public/mojom/frame/policy_container.mojom.h"

namespace content {

blink::mojom::PolicyContainerPtr CreateStubPolicyContainer() {
  mojo::PendingAssociatedRemote<blink::mojom::PolicyContainerHost>
      stub_policy_container_remote;
  std::ignore =
      stub_policy_container_remote.InitWithNewEndpointAndPassReceiver();
  return blink::mojom::PolicyContainer::New(
      blink::mojom::PolicyContainerPolicies::New(),
      std::move(stub_policy_container_remote));
}

}  // namespace content