#include "dbus/object_proxy.h"
#include "base/functional/bind.h"
#include "base/memory/ref_counted.h"
#include "base/run_loop.h"
#include "base/test/task_environment.h"
#include "dbus/bus.h"
#include "dbus/test_service.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace dbus {
namespace {
class ObjectProxyTest : public testing::Test { … };
void OnServiceIsAvailable(bool* dest_service_is_available,
int* num_calls,
bool src_service_is_available) { … }
void OnOwnershipRequestDone(bool success) { … }
void OnOwnershipReleased() { … }
TEST_F(ObjectProxyTest, WaitForServiceToBeAvailableRunOnce) { … }
TEST_F(ObjectProxyTest, WaitForServiceToBeAvailableAlreadyRunning) { … }
TEST_F(ObjectProxyTest, WaitForServiceToBeAvailableMultipleCallbacks) { … }
}
}