From: Daehyeon Jung Date: Thu, 14 Feb 2019 09:37:20 +0000 (+0900) Subject: Fix codestyle X-Git-Tag: submit/tizen/20190219.020108^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c85f9aeff618da4d177f472435fc942fdf8b5471;p=platform%2Fcore%2Fappfw%2Fcapmgr.git Fix codestyle Change-Id: I3dd2e8f45db0115fd9aa6876d32533d8b8ccc4af --- diff --git a/src/common/mdg_manager.cc b/src/common/mdg_manager.cc index 997589b..e441bf1 100644 --- a/src/common/mdg_manager.cc +++ b/src/common/mdg_manager.cc @@ -71,8 +71,8 @@ void SendDataFinishCb(int result, mdg_device_h device, char* channel_id, capmgr::DBusService::SendAppControlReply(msg_id, data, len); } -void SendFileProgressCb(const char* file_path_, long long int send_size, - long long int total_size, int percent, void* user_data) { +void SendFileProgressCb(const char* file_path_, long long int send_size, // NOLINT + long long int total_size, int percent, void* user_data) { // NOLINT std::string file_path = std::string(file_path_); LOG(INFO) << "SendFileProgressCb called. " << "file_path: " << file_path diff --git a/src/unit_tests/mock/CPPLINT.cfg b/src/unit_tests/mock/CPPLINT.cfg new file mode 100644 index 0000000..9513cbb --- /dev/null +++ b/src/unit_tests/mock/CPPLINT.cfg @@ -0,0 +1,2 @@ +exclude_files=.*\.h + diff --git a/src/unit_tests/mock/bundle.cc b/src/unit_tests/mock/bundle.cc index f0a794d..d461c09 100644 --- a/src/unit_tests/mock/bundle.cc +++ b/src/unit_tests/mock/bundle.cc @@ -2,7 +2,7 @@ // Use of this source code is governed by a apache 2.0 license that can be // found in the LICENSE file. -#include "bundle.h" +#include "bundle.h" // NOLINT(build/include) int bundle_encode(bundle* b, bundle_raw** raw, int* len) { return 0; diff --git a/src/unit_tests/mock/dlog.cc b/src/unit_tests/mock/dlog.cc index be46c15..7c5910b 100644 --- a/src/unit_tests/mock/dlog.cc +++ b/src/unit_tests/mock/dlog.cc @@ -2,11 +2,11 @@ // Use of this source code is governed by a apache 2.0 license that can be // found in the LICENSE file. -#include "dlog.h" - #include #include +#include "dlog.h" // NOLINT(build/include) + int dlog_print(log_priority prio, const char *tag, const char *fmt, ...) { va_list list; va_start(list, fmt); diff --git a/src/unit_tests/mock/mock.cc b/src/unit_tests/mock/mock.cc index fbe5e28..b21ede9 100644 --- a/src/unit_tests/mock/mock.cc +++ b/src/unit_tests/mock/mock.cc @@ -2,14 +2,14 @@ // Use of this source code is governed by a apache 2.0 license that can be // found in the LICENSE file. -#include "mock.h" -#include "package-manager.h" -#include "pkgmgr-info.h" -#include "mdg.h" -#include "mdg_internal.h" -#include "aul.h" -#include "aul_svc.h" -#include "cynara-creds-gdbus.h" +#include "aul.h" // NOLINT(build/include) +#include "aul_svc.h" // NOLINT(build/include) +#include "cynara-creds-gdbus.h" // NOLINT(build/include) +#include "mdg.h" // NOLINT(build/include) +#include "mdg_internal.h" // NOLINT(build/include) +#include "mock.h" // NOLINT(build/include) +#include "package-manager.h" // NOLINT(build/include) +#include "pkgmgr-info.h" // NOLINT(build/include) DEFINE_FFF_GLOBALS; @@ -49,7 +49,8 @@ DEFINE_FAKE_VALUE_FUNC(int, pkgmgr_client_free, pkgmgr_client*); DEFINE_FAKE_VALUE_FUNC(int, mdg_device_send_file, mdg_h, mdg_device_h, char*, mdg_send_file_progress_cb, mdg_send_file_finish_cb, void*); DEFINE_FAKE_VALUE_FUNC(int, mdg_group_info_get_device_id, mdg_group_h, char**); -DEFINE_FAKE_VALUE_FUNC(int, mdg_device_info_get_device_id, mdg_device_h, char**); +DEFINE_FAKE_VALUE_FUNC(int, mdg_device_info_get_device_id, mdg_device_h, + char**); DEFINE_FAKE_VALUE_FUNC(int, mdg_device_info_get_profile, mdg_device_h, char**); DEFINE_FAKE_VALUE_FUNC(int, mdg_device_info_get_platform_ver, mdg_device_h, char**);