| // Copyright 2019 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #if defined(__clang__) |
| #pragma clang diagnostic push |
| #pragma clang diagnostic ignored "-Wunused-private-field" |
| #elif defined(_MSC_VER) |
| #pragma warning(push) |
| #pragma warning(disable:4056) |
| #pragma warning(disable:4065) |
| #pragma warning(disable:4756) |
| #endif |
| |
| |
| #include "content/common/associated_interfaces.mojom-test-utils.h" |
| |
| #include <utility> |
| |
| #include "base/bind.h" |
| #include "base/run_loop.h" |
| #include "third_party/blink/public/mojom/associated_interfaces/associated_interfaces.mojom.h" |
| |
| |
| #ifndef CONTENT_COMMON_ASSOCIATED_INTERFACES_MOJOM_JUMBO_H_ |
| #define CONTENT_COMMON_ASSOCIATED_INTERFACES_MOJOM_JUMBO_H_ |
| #endif |
| |
| |
| namespace content { |
| namespace mojom { |
| |
| |
| void RouteProviderInterceptorForTesting::GetRoute(int32_t routing_id, ::blink::mojom::AssociatedInterfaceProviderAssociatedRequest request) { |
| GetForwardingInterface()->GetRoute(std::move(routing_id), std::move(request)); |
| } |
| RouteProviderAsyncWaiter::RouteProviderAsyncWaiter( |
| RouteProvider* proxy) : proxy_(proxy) {} |
| |
| RouteProviderAsyncWaiter::~RouteProviderAsyncWaiter() = default; |
| |
| |
| |
| |
| |
| |
| } // namespace mojom |
| } // namespace content |
| |
| #if defined(__clang__) |
| #pragma clang diagnostic pop |
| #elif defined(_MSC_VER) |
| #pragma warning(pop) |
| #endif |