| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| 11 #include "webrtc/system_wrappers/source/data_log_c_helpers_unittest.h" | 11 #include "webrtc/system_wrappers/source/data_log_c_helpers_unittest.h" |
| 12 | 12 |
| 13 #include <assert.h> | 13 #include <assert.h> |
| 14 #include <stdlib.h> | 14 #include <stdlib.h> |
| 15 #include <string.h> | 15 #include <string.h> |
| 16 | 16 |
| 17 #include "webrtc/system_wrappers/interface/data_log_c.h" | 17 #include "webrtc/system_wrappers/include/data_log_c.h" |
| 18 | 18 |
| 19 enum { kTestArrayLen = 4 }; | 19 enum { kTestArrayLen = 4 }; |
| 20 static const char kTableName[] = "c_wrapper_table"; | 20 static const char kTableName[] = "c_wrapper_table"; |
| 21 static const char kColumnName1[] = "Scalar"; | 21 static const char kColumnName1[] = "Scalar"; |
| 22 static const char kColumnName2[] = "Vector"; | 22 static const char kColumnName2[] = "Vector"; |
| 23 | 23 |
| 24 int WebRtcDataLogCHelper_TestCreateLog() { | 24 int WebRtcDataLogCHelper_TestCreateLog() { |
| 25 return WebRtcDataLog_CreateLog(); | 25 return WebRtcDataLog_CreateLog(); |
| 26 } | 26 } |
| 27 | 27 |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 | 115 |
| 116 int WebRtcDataLogCHelper_TestInsertCell_int64() { | 116 int WebRtcDataLogCHelper_TestInsertCell_int64() { |
| 117 return WebRtcDataLog_InsertCell_int64(kTableName, kColumnName1, 17); | 117 return WebRtcDataLog_InsertCell_int64(kTableName, kColumnName1, 17); |
| 118 } | 118 } |
| 119 | 119 |
| 120 int WebRtcDataLogCHelper_TestInsertArray_int64() { | 120 int WebRtcDataLogCHelper_TestInsertArray_int64() { |
| 121 int64_t values[kTestArrayLen] = {1, 2, 3, 4}; | 121 int64_t values[kTestArrayLen] = {1, 2, 3, 4}; |
| 122 return WebRtcDataLog_InsertArray_int64(kTableName, kColumnName2, values, | 122 return WebRtcDataLog_InsertArray_int64(kTableName, kColumnName2, values, |
| 123 kTestArrayLen); | 123 kTestArrayLen); |
| 124 } | 124 } |
| OLD | NEW |