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 "chrome/browser/chromeos/dbus/blocking_method_caller.h" | 5 #include "chromeos/dbus/blocking_method_caller.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "dbus/message.h" | 10 #include "dbus/message.h" |
11 #include "dbus/mock_bus.h" | 11 #include "dbus/mock_bus.h" |
12 #include "dbus/mock_object_proxy.h" | 12 #include "dbus/mock_object_proxy.h" |
13 #include "dbus/object_path.h" | 13 #include "dbus/object_path.h" |
14 #include "testing/gmock/include/gmock/gmock.h" | 14 #include "testing/gmock/include/gmock/gmock.h" |
15 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 // Check the response. | 116 // Check the response. |
117 ASSERT_TRUE(response.get()); | 117 ASSERT_TRUE(response.get()); |
118 dbus::MessageReader reader(response.get()); | 118 dbus::MessageReader reader(response.get()); |
119 std::string text_message; | 119 std::string text_message; |
120 ASSERT_TRUE(reader.PopString(&text_message)); | 120 ASSERT_TRUE(reader.PopString(&text_message)); |
121 // The text message should be echo'ed back. | 121 // The text message should be echo'ed back. |
122 EXPECT_EQ(kHello, text_message); | 122 EXPECT_EQ(kHello, text_message); |
123 } | 123 } |
124 | 124 |
125 } // namespace chromeos | 125 } // namespace chromeos |
OLD | NEW |