Fix codestyle 90/199990/1
authorDaehyeon Jung <darrenh.jung@samsung.com>
Thu, 14 Feb 2019 09:37:20 +0000 (18:37 +0900)
committer정대현/Tizen Platform Lab(SR)/Staff Engineer/삼성전자 <darrenh.jung@samsung.com>
Thu, 14 Feb 2019 10:50:10 +0000 (19:50 +0900)
Change-Id: I3dd2e8f45db0115fd9aa6876d32533d8b8ccc4af

src/common/mdg_manager.cc
src/unit_tests/mock/CPPLINT.cfg [new file with mode: 0644]
src/unit_tests/mock/bundle.cc
src/unit_tests/mock/dlog.cc
src/unit_tests/mock/mock.cc

index 997589bafff656d629b88db67c254afd8ba7e317..e441bf16ccf5bf164ef2e96526f01d4dce543101 100644 (file)
@@ -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 (file)
index 0000000..9513cbb
--- /dev/null
@@ -0,0 +1,2 @@
+exclude_files=.*\.h
+
index f0a794d5aaf90c3c4cc2603d378e8a4e7b8c392e..d461c098da028ccecfc481584c1e79ddfcbcb512 100644 (file)
@@ -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;
index be46c153ec78f78c88ceecace8828793bc22553f..7c5910b3e752f82c2c72921e4864d3356e514f9d 100644 (file)
@@ -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 <stdarg.h>
 #include <stdio.h>
 
+#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);
index fbe5e28eeeb938161275d36e3e0db24ca3aa73d3..b21ede9ecb078ba7949691fe54fc1f3cf911bf97 100644 (file)
@@ -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**);