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 <algorithm> | 5 #include <algorithm> |
6 #include <string> | 6 #include <string> |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "base/message_loop.h" | 11 #include "base/message_loop/message_loop.h" |
12 #include "base/stl_util.h" | 12 #include "base/stl_util.h" |
13 #include "base/test/test_timeouts.h" | 13 #include "base/test/test_timeouts.h" |
14 #include "base/threading/thread.h" | 14 #include "base/threading/thread.h" |
15 #include "base/threading/thread_restrictions.h" | 15 #include "base/threading/thread_restrictions.h" |
16 #include "dbus/bus.h" | 16 #include "dbus/bus.h" |
17 #include "dbus/message.h" | 17 #include "dbus/message.h" |
18 #include "dbus/object_path.h" | 18 #include "dbus/object_path.h" |
19 #include "dbus/object_proxy.h" | 19 #include "dbus/object_proxy.h" |
20 #include "dbus/test_service.h" | 20 #include "dbus/test_service.h" |
21 #include "testing/gtest/include/gtest/gtest.h" | 21 #include "testing/gtest/include/gtest/gtest.h" |
(...skipping 616 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
638 test_service_->SendTestSignal(kMessage); | 638 test_service_->SendTestSignal(kMessage); |
639 // Receive the signal with the object proxy. | 639 // Receive the signal with the object proxy. |
640 WaitForTestSignal(); | 640 WaitForTestSignal(); |
641 // Verify the string WAS received by the original handler. | 641 // Verify the string WAS received by the original handler. |
642 ASSERT_EQ(kMessage, test_signal_string_); | 642 ASSERT_EQ(kMessage, test_signal_string_); |
643 // Verify the signal WAS ALSO received by the additional handler. | 643 // Verify the signal WAS ALSO received by the additional handler. |
644 ASSERT_EQ(kMessage, additional_test_signal_string_); | 644 ASSERT_EQ(kMessage, additional_test_signal_string_); |
645 } | 645 } |
646 | 646 |
647 } // namespace dbus | 647 } // namespace dbus |
OLD | NEW |