chromium/dbus/object_manager_unittest.cc

// Copyright 2013 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "dbus/object_manager.h"

#include <stddef.h>
#include <stdint.h>

#include <memory>
#include <optional>
#include <string>
#include <vector>

#include "base/functional/bind.h"
#include "base/memory/raw_ptr.h"
#include "base/message_loop/message_pump_type.h"
#include "base/run_loop.h"
#include "base/task/single_thread_task_runner.h"
#include "base/test/task_environment.h"
#include "base/threading/thread.h"
#include "base/threading/thread_restrictions.h"
#include "base/time/time.h"
#include "dbus/bus.h"
#include "dbus/object_path.h"
#include "dbus/object_proxy.h"
#include "dbus/property.h"
#include "dbus/test_service.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace dbus {

// The object manager test exercises the asynchronous APIs in ObjectManager,
// and by extension PropertySet and Property<>.
class ObjectManagerTest
    : public testing::Test,
      public ObjectManager::Interface {};


TEST_F(ObjectManagerTest, InitialObject) {}

TEST_F(ObjectManagerTest, UnknownObjectProxy) {}

TEST_F(ObjectManagerTest, UnknownObjectProperties) {}

TEST_F(ObjectManagerTest, UnknownInterfaceProperties) {}

TEST_F(ObjectManagerTest, GetObjects) {}

TEST_F(ObjectManagerTest, GetObjectsWithInterface) {}

TEST_F(ObjectManagerTest, GetObjectsWithUnknownInterface) {}

TEST_F(ObjectManagerTest, SameObject) {}

TEST_F(ObjectManagerTest, DifferentObjectForService) {}

TEST_F(ObjectManagerTest, DifferentObjectForPath) {}

TEST_F(ObjectManagerTest, SecondObject) {}

TEST_F(ObjectManagerTest, RemoveSecondObject) {}

TEST_F(ObjectManagerTest, OwnershipLost) {}

TEST_F(ObjectManagerTest, OwnershipLostAndRegained) {}

// Flaky: crbug.com/1174515
TEST_F(ObjectManagerTest, DISABLED_PropertiesChangedAsObjectsReceived) {}

}  // namespace dbus