OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "dbus/bus.h" | 5 #include "dbus/bus.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/macros.h" |
8 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
9 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
10 #include "base/run_loop.h" | 11 #include "base/run_loop.h" |
11 #include "base/threading/thread.h" | 12 #include "base/threading/thread.h" |
12 #include "dbus/exported_object.h" | 13 #include "dbus/exported_object.h" |
13 #include "dbus/object_path.h" | 14 #include "dbus/object_path.h" |
14 #include "dbus/object_proxy.h" | 15 #include "dbus/object_proxy.h" |
15 #include "dbus/scoped_dbus_error.h" | 16 #include "dbus/scoped_dbus_error.h" |
16 #include "dbus/test_service.h" | 17 #include "dbus/test_service.h" |
17 | 18 |
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
408 // Connection name is not empty after connection is established. | 409 // Connection name is not empty after connection is established. |
409 EXPECT_TRUE(bus->is_connected()); | 410 EXPECT_TRUE(bus->is_connected()); |
410 EXPECT_FALSE(bus->GetConnectionName().empty()); | 411 EXPECT_FALSE(bus->GetConnectionName().empty()); |
411 | 412 |
412 // Shut down synchronously. | 413 // Shut down synchronously. |
413 bus->ShutdownAndBlock(); | 414 bus->ShutdownAndBlock(); |
414 EXPECT_TRUE(bus->shutdown_completed()); | 415 EXPECT_TRUE(bus->shutdown_completed()); |
415 } | 416 } |
416 | 417 |
417 } // namespace dbus | 418 } // namespace dbus |
OLD | NEW |