Reformatted data_log.
BUG= Review URL: https://webrtc-codereview.appspot.com/974007 git-svn-id: http://webrtc.googlecode.com/svn/trunk@3221 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@ -8,18 +8,17 @@
|
||||
* be found in the AUTHORS file in the root of the source tree.
|
||||
*/
|
||||
|
||||
#include "data_log.h"
|
||||
#include "webrtc/system_wrappers/interface/data_log.h"
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
#include <algorithm>
|
||||
#include <list>
|
||||
|
||||
#include "critical_section_wrapper.h"
|
||||
#include "event_wrapper.h"
|
||||
#include "file_wrapper.h"
|
||||
#include "rw_lock_wrapper.h"
|
||||
#include "thread_wrapper.h"
|
||||
#include "webrtc/system_wrappers/interface/critical_section_wrapper.h"
|
||||
#include "webrtc/system_wrappers/interface/event_wrapper.h"
|
||||
#include "webrtc/system_wrappers/interface/file_wrapper.h"
|
||||
#include "webrtc/system_wrappers/interface/rw_lock_wrapper.h"
|
||||
#include "webrtc/system_wrappers/interface/thread_wrapper.h"
|
||||
|
||||
namespace webrtc {
|
||||
|
||||
|
||||
@ -8,15 +8,13 @@
|
||||
* be found in the AUTHORS file in the root of the source tree.
|
||||
*/
|
||||
|
||||
/*
|
||||
* This is the pure C wrapper of the DataLog class.
|
||||
*/
|
||||
// This is the pure C wrapper of the DataLog class.
|
||||
|
||||
#include "system_wrappers/interface/data_log_c.h"
|
||||
#include "webrtc/system_wrappers/interface/data_log_c.h"
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "system_wrappers/interface/data_log.h"
|
||||
#include "webrtc/system_wrappers/interface/data_log.h"
|
||||
|
||||
extern "C" int WebRtcDataLog_CreateLog() {
|
||||
return webrtc::DataLog::CreateLog();
|
||||
|
||||
@ -8,13 +8,13 @@
|
||||
* be found in the AUTHORS file in the root of the source tree.
|
||||
*/
|
||||
|
||||
#include "system_wrappers/source/data_log_c_helpers_unittest.h"
|
||||
#include "webrtc/system_wrappers/source/data_log_c_helpers_unittest.h"
|
||||
|
||||
#include <assert.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "system_wrappers/interface/data_log_c.h"
|
||||
#include "webrtc/system_wrappers/interface/data_log_c.h"
|
||||
|
||||
enum { kTestArrayLen = 4 };
|
||||
static const char kTableName[] = "c_wrapper_table";
|
||||
@ -31,7 +31,7 @@ int WebRtcDataLogCHelper_TestReturnLog() {
|
||||
}
|
||||
|
||||
int WebRtcDataLogCHelper_TestCombine() {
|
||||
const int kOutLen = strlen(kTableName) + 4; /* Room for "_17" + '\0' */
|
||||
const int kOutLen = strlen(kTableName) + 4; // Room for "_17" + '\0'
|
||||
char* combined_name = malloc(kOutLen * sizeof(char));
|
||||
char* out_ptr = WebRtcDataLog_Combine(combined_name, kOutLen, kTableName, 17);
|
||||
int return_code = 0;
|
||||
|
||||
@ -8,9 +8,10 @@
|
||||
* be found in the AUTHORS file in the root of the source tree.
|
||||
*/
|
||||
|
||||
#include "webrtc/system_wrappers/interface/data_log.h"
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "data_log.h"
|
||||
#include "gtest/gtest.h"
|
||||
|
||||
using ::webrtc::DataLog;
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
* be found in the AUTHORS file in the root of the source tree.
|
||||
*/
|
||||
|
||||
#include "data_log.h"
|
||||
#include "webrtc/system_wrappers/interface/data_log.h"
|
||||
|
||||
#include <string>
|
||||
|
||||
|
||||
@ -8,13 +8,14 @@
|
||||
* be found in the AUTHORS file in the root of the source tree.
|
||||
*/
|
||||
|
||||
#include "webrtc/system_wrappers/interface/data_log.h"
|
||||
|
||||
#include <map>
|
||||
#include <string>
|
||||
|
||||
#include "system_wrappers/interface/data_log.h"
|
||||
#include "system_wrappers/interface/data_log_c.h"
|
||||
#include "system_wrappers/source/data_log_c_helpers_unittest.h"
|
||||
#include "gtest/gtest.h"
|
||||
#include "webrtc/system_wrappers/interface/data_log_c.h"
|
||||
#include "webrtc/system_wrappers/source/data_log_c_helpers_unittest.h"
|
||||
|
||||
using ::webrtc::DataLog;
|
||||
|
||||
@ -257,9 +258,9 @@ TEST(TestDataLog, VerifyMultipleTables) {
|
||||
kNumberOfRows),
|
||||
1);
|
||||
expected["timestamp,"] = ExpectedValues(
|
||||
std::vector<std::string>(string_timestamp,
|
||||
string_timestamp +
|
||||
kNumberOfRows),
|
||||
std::vector<std::string>(string_timestamp,
|
||||
string_timestamp +
|
||||
kNumberOfRows),
|
||||
1);
|
||||
ASSERT_EQ(DataLogParser::VerifyTable(table, expected), 0);
|
||||
fclose(table);
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
* be found in the AUTHORS file in the root of the source tree.
|
||||
*/
|
||||
|
||||
#include "system_wrappers/interface/data_log.h"
|
||||
#include "webrtc/system_wrappers/interface/data_log.h"
|
||||
|
||||
#include <cstdio>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user