blob: 1d83404049f548924f7e00bed4752f3ba36d0f31 [file] [log] [blame]
// content/common/web_ui.mojom-test-utils.h is auto generated by mojom_bindings_generator.py, do not edit
// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CONTENT_COMMON_WEB_UI_MOJOM_TEST_UTILS_H_
#define CONTENT_COMMON_WEB_UI_MOJOM_TEST_UTILS_H_
#include "content/common/web_ui.mojom.h"
#include "content/common/content_export.h"
namespace content::mojom {
class CONTENT_EXPORT WebUIHostInterceptorForTesting : public WebUIHost {
virtual WebUIHost* GetForwardingInterface() = 0;
void Send(const std::string& message, ::base::Value::List args) override;
};
class CONTENT_EXPORT WebUIHostAsyncWaiter {
public:
explicit WebUIHostAsyncWaiter(WebUIHost* proxy);
WebUIHostAsyncWaiter(const WebUIHostAsyncWaiter&) = delete;
WebUIHostAsyncWaiter& operator=(const WebUIHostAsyncWaiter&) = delete;
~WebUIHostAsyncWaiter();
private:
WebUIHost* const proxy_;
};
class CONTENT_EXPORT WebUIInterceptorForTesting : public WebUI {
virtual WebUI* GetForwardingInterface() = 0;
void SetProperty(const std::string& property_name, const std::string& property_value_json) override;
};
class CONTENT_EXPORT WebUIAsyncWaiter {
public:
explicit WebUIAsyncWaiter(WebUI* proxy);
WebUIAsyncWaiter(const WebUIAsyncWaiter&) = delete;
WebUIAsyncWaiter& operator=(const WebUIAsyncWaiter&) = delete;
~WebUIAsyncWaiter();
private:
WebUI* const proxy_;
};
} // content::mojom
#endif // CONTENT_COMMON_WEB_UI_MOJOM_TEST_UTILS_H_