1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 #include <CommonAPI/Runtime.h>
8 //#define ASSERT_DBUSMESSAGE_EQ(_dbusMessage1, _dbusMessage2) \
9 // ASSERT_FALSE(_dbusMessage1.getSignatureString() == NULL); \
10 // ASSERT_FALSE(_dbusMessage2.getSignatureString() == NULL); \
11 // ASSERT_STREQ(_dbusMessage1.getSignatureString(), _dbusMessage2.getSignatureString()); \
12 // ASSERT_EQ(_dbusMessage1.getBodyLength(), _dbusMessage2.getBodyLength()); \
13 // ASSERT_FALSE(_dbusMessage1.getBodyData() == NULL); \
14 // ASSERT_FALSE(_dbusMessage2.getBodyData() == NULL); \
15 // ASSERT_EQ(memcmp(_dbusMessage1.getBodyData(), _dbusMessage2.getBodyData(), _dbusMessage1.getBodyLength()), 0)
20 //class DBusConnectionTest: public ::testing::Test {
22 // virtual void SetUp() {
25 // virtual void TearDown() {
30 //TEST_F(DBusConnectionTest, CanBeConstructed) {
31 // std::shared_ptr<CommonAPI::Runtime> runtime = CommonAPI::Runtime::load("");
32 // std::shared_ptr<CommonAPI::ProxyFactory> proxyFactory_ = runtime->createProxyFactory();