blob: 4237764afa76e62fcf2885d8746742f18fd72250 [file] [log] [blame]
// mojom/passpoint.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 MOJOM_PASSPOINT_MOJOM_TEST_UTILS_H_
#define MOJOM_PASSPOINT_MOJOM_TEST_UTILS_H_
#include "mojom/passpoint.mojom.h"
namespace chromeos::connectivity::mojom {
class PasspointEventsListenerInterceptorForTesting : public PasspointEventsListener {
virtual PasspointEventsListener* GetForwardingInterface() = 0;
void OnPasspointSubscriptionAdded(PasspointSubscriptionPtr subscription) override;
void OnPasspointSubscriptionRemoved(PasspointSubscriptionPtr subscription) override;
};
class PasspointEventsListenerAsyncWaiter {
public:
explicit PasspointEventsListenerAsyncWaiter(PasspointEventsListener* proxy);
PasspointEventsListenerAsyncWaiter(const PasspointEventsListenerAsyncWaiter&) = delete;
PasspointEventsListenerAsyncWaiter& operator=(const PasspointEventsListenerAsyncWaiter&) = delete;
~PasspointEventsListenerAsyncWaiter();
private:
PasspointEventsListener* const proxy_;
};
class PasspointServiceInterceptorForTesting : public PasspointService {
virtual PasspointService* GetForwardingInterface() = 0;
void GetPasspointSubscription(const std::string& id, GetPasspointSubscriptionCallback callback) override;
void ListPasspointSubscriptions(ListPasspointSubscriptionsCallback callback) override;
void DeletePasspointSubscription(const std::string& id, DeletePasspointSubscriptionCallback callback) override;
void RegisterPasspointListener(::mojo::PendingRemote<PasspointEventsListener> listener) override;
};
class PasspointServiceAsyncWaiter {
public:
explicit PasspointServiceAsyncWaiter(PasspointService* proxy);
PasspointServiceAsyncWaiter(const PasspointServiceAsyncWaiter&) = delete;
PasspointServiceAsyncWaiter& operator=(const PasspointServiceAsyncWaiter&) = delete;
~PasspointServiceAsyncWaiter();
void GetPasspointSubscription(
const std::string& id, PasspointSubscriptionPtr* out_result);
PasspointSubscriptionPtr GetPasspointSubscription(const std::string& id);
void ListPasspointSubscriptions(
std::vector<PasspointSubscriptionPtr>* out_result);
std::vector<PasspointSubscriptionPtr> ListPasspointSubscriptions();
void DeletePasspointSubscription(
const std::string& id, bool* out_success);
bool DeletePasspointSubscription(const std::string& id);
private:
PasspointService* const proxy_;
};
} // chromeos::connectivity::mojom
#endif // MOJOM_PASSPOINT_MOJOM_TEST_UTILS_H_