diff options
author | Alex Vakulenko <avakulenko@google.com> | 2015-12-16 20:33:06 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2015-12-16 20:33:06 +0000 |
commit | 0a89c58b90e27879316579b49b57c7b69918a8e9 (patch) | |
tree | f2fb5c8ff121eb4918eb3ccd8ad00b8bc8d2d05a | |
parent | 6e2ce2a43836e8efb1cb0ec4279d3d659283aa69 (diff) | |
parent | f1a77fcb460c16e690306ea1e296d26ba7b90da2 (diff) | |
download | weaved-0a89c58b90e27879316579b49b57c7b69918a8e9.tar.gz |
Fix weaved unit tests
am: f1a77fcb46
* commit 'f1a77fcb460c16e690306ea1e296d26ba7b90da2':
Fix weaved unit tests
-rw-r--r-- | buffet/dbus_command_proxy_unittest.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/buffet/dbus_command_proxy_unittest.cc b/buffet/dbus_command_proxy_unittest.cc index 0aa701d..5225f11 100644 --- a/buffet/dbus_command_proxy_unittest.cc +++ b/buffet/dbus_command_proxy_unittest.cc @@ -79,6 +79,8 @@ class DBusCommandProxyTest : public ::testing::Test { // Use WillRepeatedly because GetName is used for logging. EXPECT_CALL(*command_, GetName()) .WillRepeatedly(ReturnRefOfCopy<std::string>("robot.jump")); + EXPECT_CALL(*command_, GetComponent()) + .WillRepeatedly(ReturnRefOfCopy<std::string>("myComponent")); EXPECT_CALL(*command_, GetState()) .WillRepeatedly(Return(weave::Command::State::kQueued)); EXPECT_CALL(*command_, GetOrigin()) @@ -149,6 +151,7 @@ TEST_F(DBusCommandProxyTest, Init) { EXPECT_EQ(VariantDictionary{}, GetCommandAdaptor()->GetProgress()); EXPECT_EQ(VariantDictionary{}, GetCommandAdaptor()->GetResults()); EXPECT_EQ("robot.jump", GetCommandAdaptor()->GetName()); + EXPECT_EQ("myComponent", GetCommandAdaptor()->GetComponent()); EXPECT_EQ(kTestCommandId, GetCommandAdaptor()->GetId()); } |