blob: 8e2c525fa777b9a8ae4f08e11c2e19ce04a1cc20 [file] [log] [blame]
// 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 "third_party/blink/public/mojom/renderer_preference_watcher.mojom-test-utils.h"
#include <utility>
#include "base/bind.h"
#include "base/run_loop.h"
#include "third_party/blink/public/mojom/renderer_preferences.mojom.h"
#ifndef THIRD_PARTY_BLINK_PUBLIC_MOJOM_RENDERER_PREFERENCE_WATCHER_MOJOM_JUMBO_H_
#define THIRD_PARTY_BLINK_PUBLIC_MOJOM_RENDERER_PREFERENCE_WATCHER_MOJOM_JUMBO_H_
#include "mojo/public/cpp/base/string16_mojom_traits.h"
#include "mojo/public/cpp/base/time_mojom_traits.h"
#include "ui/gfx/mojo/font_render_params_struct_traits.h"
#endif
namespace blink {
namespace mojom {
void RendererPreferenceWatcherInterceptorForTesting::NotifyUpdate(::blink::mojom::RendererPreferencesPtr new_prefs) {
GetForwardingInterface()->NotifyUpdate(std::move(new_prefs));
}
RendererPreferenceWatcherAsyncWaiter::RendererPreferenceWatcherAsyncWaiter(
RendererPreferenceWatcher* proxy) : proxy_(proxy) {}
RendererPreferenceWatcherAsyncWaiter::~RendererPreferenceWatcherAsyncWaiter() = default;
} // namespace mojom
} // namespace blink
#if defined(__clang__)
#pragma clang diagnostic pop
#elif defined(_MSC_VER)
#pragma warning(pop)
#endif