| 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 <memory> | 5 #include <memory> |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
| 9 #include "base/metrics/histogram.h" | 9 #include "base/metrics/histogram_macros.h" |
| 10 #include "base/metrics/histogram_samples.h" | 10 #include "base/metrics/histogram_samples.h" |
| 11 #include "base/metrics/statistics_recorder.h" | 11 #include "base/metrics/statistics_recorder.h" |
| 12 #include "base/run_loop.h" | 12 #include "base/run_loop.h" |
| 13 #include "base/single_thread_task_runner.h" | 13 #include "base/single_thread_task_runner.h" |
| 14 #include "base/test/test_timeouts.h" | 14 #include "base/test/test_timeouts.h" |
| 15 #include "base/threading/platform_thread.h" | 15 #include "base/threading/platform_thread.h" |
| 16 #include "base/threading/thread_restrictions.h" | 16 #include "base/threading/thread_restrictions.h" |
| 17 #include "dbus/bus.h" | 17 #include "dbus/bus.h" |
| 18 #include "dbus/message.h" | 18 #include "dbus/message.h" |
| 19 #include "dbus/object_proxy.h" | 19 #include "dbus/object_proxy.h" |
| (...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 398 | 398 |
| 399 // Now the second service owns the name. | 399 // Now the second service owns the name. |
| 400 const char kNewMessage[] = "hello, new world"; | 400 const char kNewMessage[] = "hello, new world"; |
| 401 | 401 |
| 402 test_service2_->SendTestSignal(kNewMessage); | 402 test_service2_->SendTestSignal(kNewMessage); |
| 403 WaitForTestSignal(); | 403 WaitForTestSignal(); |
| 404 ASSERT_EQ(kNewMessage, test_signal_string_); | 404 ASSERT_EQ(kNewMessage, test_signal_string_); |
| 405 } | 405 } |
| 406 | 406 |
| 407 } // namespace dbus | 407 } // namespace dbus |
| OLD | NEW |