* limitations under the License.
*/
+#include <dlog.h>
#include <system_info.h>
#include "util.hh"
float max_opr;
bool shape_circle = false;
- system_info_get_platform_bool(KEY_SCREEN_SHAPE_CIRCLE, &shape_circle);;
+ if (system_info_get_platform_bool(KEY_SCREEN_SHAPE_CIRCLE, &shape_circle))
+ LOGE("Failed to get system info");
source = static_cast<int*>(source_data);
pos = width / 2;
class AmbientViewerTest : public TestFixture {
public:
AmbientViewerTest() : TestFixture(std::make_unique<Mocks>()) {}
- AmbientViewerStub* stub;
+ AmbientViewerStub* stub = nullptr;
virtual void SetUp() {
EXPECT_CALL(GetMock<VconfMock>(), vconf_get_str(_))
TEST_F(AmbientViewerTest, NotifyAmbientEvent) {
Bundle b;
EXPECT_EQ(AmbientViewerTest::stub->NotifyAmbientEvent(AmbientViewer::AMBIENT_ENTER,
- AmbientViewer::DIRECTION_ALL, b), 0);
+ AmbientViewer::DIRECTION_ALL, std::move(b)), 0);
}
TEST_F(AmbientViewerTest, NotifyAmbientEvent2) {
Bundle b;
EXPECT_EQ(AmbientViewerTest::stub->NotifyAmbientEvent(AmbientViewer::AMBIENT_ENTER,
- AmbientViewer::DIRECTION_VIEWER_AND_WATCH, b), 0);
+ AmbientViewer::DIRECTION_VIEWER_AND_WATCH, std::move(b)), 0);
}
TEST_F(AmbientViewerTest, NotifyAmbientEvent3) {
Bundle b;
EXPECT_EQ(AmbientViewerTest::stub->NotifyAmbientEvent(AmbientViewer::AMBIENT_ENTER,
- AmbientViewer::DIRECTION_VIEWER_AND_TOP_APP, b), 0);
+ AmbientViewer::DIRECTION_VIEWER_AND_TOP_APP, std::move(b)), 0);
}
TEST_F(AmbientViewerTest, BlockUpdate) {
}
void InvokeAmbientEvent(EventType ev, string sender,
Bundle extra) {
- OnAmbientEvent(ev, sender, extra);
+ OnAmbientEvent(ev, std::move(sender), std::move(extra));
}
void OnAdded(const WatchBase& watch) override {}
void OnUpdated(const WatchBase& watch) override {}
std::shared_ptr<WatchBase> CreateWatch(int rid, std::string id,
std::string appid, bool mock) override {
- return WatchHolder::CreateWatch(rid, id, appid, true);
+ return WatchHolder::CreateWatch(rid, std::move(id), std::move(appid), true);
}
std::shared_ptr<WatchBase> CreateWatch(int rid, std::string id,
std::string appid, tizen_base::Bundle extra, bool mock) override {
- return WatchHolder::CreateWatch(rid, id, appid, extra, true);
+ return WatchHolder::CreateWatch(rid, std::move(id), std::move(appid),
+ std::move(extra), true);
}
};
public:
WatchHolderTest() : TestFixture(std::make_unique<Mocks>()) {}
virtual ~WatchHolderTest() {}
- WatchHolderStub* stub;
+ WatchHolderStub* stub = nullptr;
virtual void SetUp() {
EXPECT_CALL(GetMock<AulMock>(), aul_app_com_create(_, _, _, _, _))