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

Unified Diff: voice_engine/statistics.cc

Issue 3020473002: Remove voe::Statistics. (Closed)
Patch Set: rebase Created 3 years, 3 months 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
« no previous file with comments | « voice_engine/statistics.h ('k') | voice_engine/transmit_mixer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: voice_engine/statistics.cc
diff --git a/voice_engine/statistics.cc b/voice_engine/statistics.cc
deleted file mode 100644
index cfa7e913161371d9d4c5bbd6d3fb9be4efdee092..0000000000000000000000000000000000000000
--- a/voice_engine/statistics.cc
+++ /dev/null
@@ -1,86 +0,0 @@
-/*
- * Copyright (c) 2012 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 <assert.h>
-#include <stdio.h>
-
-#include "voice_engine/statistics.h"
-
-#include "system_wrappers/include/trace.h"
-
-namespace webrtc {
-
-namespace voe {
-
-Statistics::Statistics(uint32_t instanceId) :
- _instanceId(instanceId),
- _lastError(0),
- _isInitialized(false)
-{
-}
-
-Statistics::~Statistics()
-{
-}
-
-int32_t Statistics::SetInitialized()
-{
- _isInitialized = true;
- return 0;
-}
-
-int32_t Statistics::SetUnInitialized()
-{
- _isInitialized = false;
- return 0;
-}
-
-bool Statistics::Initialized() const
-{
- return _isInitialized;
-}
-
-int32_t Statistics::SetLastError(int32_t error) const
-{
- rtc::CritScope cs(&lock_);
- _lastError = error;
- return 0;
-}
-
-int32_t Statistics::SetLastError(int32_t error,
- TraceLevel level) const
-{
- WEBRTC_TRACE(level, kTraceVoice, VoEId(_instanceId,-1),
- "error code is set to %d",
- error);
- rtc::CritScope cs(&lock_);
- _lastError = error;
- return 0;
-}
-
-int32_t Statistics::SetLastError(
- int32_t error,
- TraceLevel level, const char* msg) const
-{
- char traceMessage[KTraceMaxMessageSize];
- assert(strlen(msg) < KTraceMaxMessageSize);
- sprintf(traceMessage, "%s (error=%d)", msg, error);
-
- WEBRTC_TRACE(level, kTraceVoice, VoEId(_instanceId,-1), "%s",
- traceMessage);
-
- rtc::CritScope cs(&lock_);
- _lastError = error;
- return 0;
-}
-
-} // namespace voe
-
-} // namespace webrtc
« no previous file with comments | « voice_engine/statistics.h ('k') | voice_engine/transmit_mixer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698