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

Unified Diff: media/audio/simple_sources_unittest.cc

Issue 6628020: Cleaning up src/media to be consistent with static versus anonymous namespaces. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src
Patch Set: fix namespaces Created 9 years, 10 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
Index: media/audio/simple_sources_unittest.cc
diff --git a/media/audio/simple_sources_unittest.cc b/media/audio/simple_sources_unittest.cc
index f96ffadb011a3ae7f18df863b3c666b7be18521b..661361eaa0647f69c245e83ddbb0a9838fc77441 100644
--- a/media/audio/simple_sources_unittest.cc
+++ b/media/audio/simple_sources_unittest.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -11,9 +11,7 @@
#include "media/audio/simple_sources.h"
#include "testing/gtest/include/gtest/gtest.h"
-namespace {
-
-void GenerateRandomData(char* buffer, uint32 len) {
+static void GenerateRandomData(char* buffer, uint32 len) {
static bool called = false;
if (!called) {
called = true;
@@ -26,8 +24,6 @@ void GenerateRandomData(char* buffer, uint32 len) {
buffer[i] = static_cast<char>(rand());
}
-} // namespace
-
// To test write size smaller than read size.
TEST(SimpleSourcesTest, PushSourceSmallerWrite) {
const uint32 kDataSize = 40960;

Powered by Google App Engine
This is Rietveld 408576698