blob: e61c1f91208de01d67da8f25a1eebde60dcf0273 [file] [log] [blame]
// Copyright 2022 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef LIB_FIDL_DRIVER_TESTS_TRANSPORT_SCOPED_FAKE_DRIVER_H_
#define LIB_FIDL_DRIVER_TESTS_TRANSPORT_SCOPED_FAKE_DRIVER_H_
#include <lib/fdf/testing.h>
namespace fidl_driver_testing {
class ScopedFakeDriver {
public:
ScopedFakeDriver() {
void* driver = reinterpret_cast<void*>(1);
fdf_testing_push_driver(driver);
}
~ScopedFakeDriver() { fdf_testing_pop_driver(); }
};
} // namespace fidl_driver_testing
#endif // LIB_FIDL_DRIVER_TESTS_TRANSPORT_SCOPED_FAKE_DRIVER_H_