Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(72)

Side by Side Diff: dbus/mock_unittest.cc

Issue 19607005: Use a direct include of the message_loop header in dbus/, device/, extensions/, google_apis/, gpu/,… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « dbus/exported_object.cc ('k') | dbus/object_manager_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "base/bind.h" 5 #include "base/bind.h"
6 #include "base/logging.h" 6 #include "base/logging.h"
7 #include "base/memory/ref_counted.h" 7 #include "base/memory/ref_counted.h"
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop/message_loop.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_exported_object.h"
12 #include "dbus/mock_object_proxy.h" 13 #include "dbus/mock_object_proxy.h"
13 #include "dbus/mock_exported_object.h"
14 #include "dbus/object_path.h" 14 #include "dbus/object_path.h"
15 #include "testing/gmock/include/gmock/gmock.h" 15 #include "testing/gmock/include/gmock/gmock.h"
16 #include "testing/gtest/include/gtest/gtest.h" 16 #include "testing/gtest/include/gtest/gtest.h"
17 17
18 using ::testing::_; 18 using ::testing::_;
19 using ::testing::Invoke; 19 using ::testing::Invoke;
20 using ::testing::Return; 20 using ::testing::Return;
21 using ::testing::Unused; 21 using ::testing::Unused;
22 22
23 namespace dbus { 23 namespace dbus {
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 ObjectProxy::TIMEOUT_USE_DEFAULT, 173 ObjectProxy::TIMEOUT_USE_DEFAULT,
174 base::Bind(&MockTest::OnResponse, 174 base::Bind(&MockTest::OnResponse,
175 base::Unretained(this))); 175 base::Unretained(this)));
176 // Run the message loop to let OnResponse be called. 176 // Run the message loop to let OnResponse be called.
177 message_loop_.Run(); 177 message_loop_.Run();
178 178
179 EXPECT_EQ(kHello, response_string_); 179 EXPECT_EQ(kHello, response_string_);
180 } 180 }
181 181
182 } // namespace dbus 182 } // namespace dbus
OLDNEW
« no previous file with comments | « dbus/exported_object.cc ('k') | dbus/object_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698