Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(15)

Unified Diff: webrtc/modules/audio_coding/main/test/TimedTrace.cc

Issue 1481493004: audio_coding: remove "main" directory (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebased Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/modules/audio_coding/main/test/TimedTrace.cc
diff --git a/webrtc/modules/audio_coding/main/test/TimedTrace.cc b/webrtc/modules/audio_coding/main/test/TimedTrace.cc
deleted file mode 100644
index ff9b5eeb76fd6312813b1e598ed77263ce4d51cd..0000000000000000000000000000000000000000
--- a/webrtc/modules/audio_coding/main/test/TimedTrace.cc
+++ /dev/null
@@ -1,58 +0,0 @@
-/*
- * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
- *
- * Use of this source code is governed by a BSD-style license
- * that can be found in the LICENSE file in the root of the source
- * tree. An additional intellectual property rights grant can be found
- * in the file PATENTS. All contributing project authors may
- * be found in the AUTHORS file in the root of the source tree.
- */
-
-#include "TimedTrace.h"
-#include <math.h>
-
-double TimedTrace::_timeEllapsedSec = 0;
-FILE* TimedTrace::_timedTraceFile = NULL;
-
-TimedTrace::TimedTrace() {
-
-}
-
-TimedTrace::~TimedTrace() {
- if (_timedTraceFile != NULL) {
- fclose(_timedTraceFile);
- }
- _timedTraceFile = NULL;
-}
-
-int16_t TimedTrace::SetUp(char* fileName) {
- if (_timedTraceFile == NULL) {
- _timedTraceFile = fopen(fileName, "w");
- }
- if (_timedTraceFile == NULL) {
- return -1;
- }
- return 0;
-}
-
-void TimedTrace::SetTimeEllapsed(double timeEllapsedSec) {
- _timeEllapsedSec = timeEllapsedSec;
-}
-
-double TimedTrace::TimeEllapsed() {
- return _timeEllapsedSec;
-}
-
-void TimedTrace::Tick10Msec() {
- _timeEllapsedSec += 0.010;
-}
-
-void TimedTrace::TimedLogg(char* message) {
- unsigned int minutes = (uint32_t) floor(_timeEllapsedSec / 60.0);
- double seconds = _timeEllapsedSec - minutes * 60;
- //char myFormat[100] = "%8.2f, %3u:%05.2f: %s\n";
- if (_timedTraceFile != NULL) {
- fprintf(_timedTraceFile, "%8.2f, %3u:%05.2f: %s\n", _timeEllapsedSec,
- minutes, seconds, message);
- }
-}
« no previous file with comments | « webrtc/modules/audio_coding/main/test/TimedTrace.h ('k') | webrtc/modules/audio_coding/main/test/TwoWayCommunication.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698