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

Issue 7714030: Add mock classes for Bus, ObjectProxy, and ExportedObject. (Closed)

Created:
9 years, 4 months ago by satorux1
Modified:
9 years, 4 months ago
Reviewers:
stevenjb
CC:
chromium-reviews, Paweł Hajdan Jr.
Visibility:
Public.

Description

Add mock classes for Bus, ObjectProxy, and ExportedObject. Also add mock_unittest.cc that demonstrates how to mock synchronos and asynchronos D-Bus method calls. BUG=90036 TEST=dbus_unittests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=98188

Patch Set 1 #

Patch Set 2 : fix clang build #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+410 lines, -7 lines) Patch
M dbus/bus.h View 1 chunk +4 lines, -1 line 0 comments Download
M dbus/dbus.gyp View 2 chunks +27 lines, -4 lines 0 comments Download
M dbus/exported_object.h View 1 chunk +4 lines, -1 line 0 comments Download
A dbus/mock_bus.h View 1 1 chunk +70 lines, -0 lines 2 comments Download
A dbus/mock_bus.cc View 1 1 chunk +15 lines, -0 lines 0 comments Download
A dbus/mock_exported_object.h View 1 1 chunk +39 lines, -0 lines 0 comments Download
A dbus/mock_exported_object.cc View 1 1 chunk +18 lines, -0 lines 0 comments Download
A dbus/mock_object_proxy.h View 1 1 chunk +39 lines, -0 lines 0 comments Download
A dbus/mock_object_proxy.cc View 1 1 chunk +18 lines, -0 lines 0 comments Download
A dbus/mock_unittest.cc View 1 chunk +171 lines, -0 lines 0 comments Download
M dbus/object_proxy.h View 2 chunks +5 lines, -1 line 0 comments Download

Messages

Total messages: 3 (0 generated)
satorux1
9 years, 4 months ago (2011-08-24 05:38:50 UTC) #1
stevenjb
LGTM http://codereview.chromium.org/7714030/diff/1012/dbus/mock_bus.h File dbus/mock_bus.h (right): http://codereview.chromium.org/7714030/diff/1012/dbus/mock_bus.h#newcode10 dbus/mock_bus.h:10: #include "testing/gmock/include/gmock/gmock.h" nit: + empty line
9 years, 4 months ago (2011-08-25 00:12:54 UTC) #2
satorux1
9 years, 4 months ago (2011-08-25 05:17:08 UTC) #3
http://codereview.chromium.org/7714030/diff/1012/dbus/mock_bus.h
File dbus/mock_bus.h (right):

http://codereview.chromium.org/7714030/diff/1012/dbus/mock_bus.h#newcode10
dbus/mock_bus.h:10: #include "testing/gmock/include/gmock/gmock.h"
On 2011/08/25 00:12:54, Steven Bennetts wrote:
> nit: + empty line

Done.

Powered by Google App Engine
This is Rietveld 408576698