OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/object_proxy.h" | 5 #include "dbus/object_proxy.h" |
6 #include "base/bind.h" | 6 #include "base/bind.h" |
7 #include "base/files/file_descriptor_watcher_posix.h" | 7 #include "base/files/file_descriptor_watcher_posix.h" |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
| 9 #include "base/message_loop/message_loop.h" |
9 #include "base/run_loop.h" | 10 #include "base/run_loop.h" |
10 #include "dbus/bus.h" | 11 #include "dbus/bus.h" |
11 #include "dbus/test_service.h" | 12 #include "dbus/test_service.h" |
12 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
13 | 14 |
14 namespace dbus { | 15 namespace dbus { |
15 namespace { | 16 namespace { |
16 | 17 |
17 class ObjectProxyTest : public testing::Test { | 18 class ObjectProxyTest : public testing::Test { |
18 protected: | 19 protected: |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 num_calls_2 = 0; | 138 num_calls_2 = 0; |
138 base::RunLoop().RunUntilIdle(); | 139 base::RunLoop().RunUntilIdle(); |
139 EXPECT_EQ(1, num_calls_1); | 140 EXPECT_EQ(1, num_calls_1); |
140 EXPECT_EQ(1, num_calls_2); | 141 EXPECT_EQ(1, num_calls_2); |
141 EXPECT_TRUE(service_is_available_1); | 142 EXPECT_TRUE(service_is_available_1); |
142 EXPECT_TRUE(service_is_available_2); | 143 EXPECT_TRUE(service_is_available_2); |
143 } | 144 } |
144 | 145 |
145 } // namespace | 146 } // namespace |
146 } // namespace dbus | 147 } // namespace dbus |
OLD | NEW |