| // chromeos/ash/services/connectivity/public/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 CHROMEOS_ASH_SERVICES_CONNECTIVITY_PUBLIC_MOJOM_PASSPOINT_MOJOM_TEST_UTILS_H_ |
| #define CHROMEOS_ASH_SERVICES_CONNECTIVITY_PUBLIC_MOJOM_PASSPOINT_MOJOM_TEST_UTILS_H_ |
| |
| #include "chromeos/ash/services/connectivity/public/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 // CHROMEOS_ASH_SERVICES_CONNECTIVITY_PUBLIC_MOJOM_PASSPOINT_MOJOM_TEST_UTILS_H_ |