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

Unified Diff: base/base64_unittest.cc

Issue 10969059: base: No need to inherit testing::Test in base64 unittest. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/base64_unittest.cc
diff --git a/base/base64_unittest.cc b/base/base64_unittest.cc
index 1d11b1eb10850b3168b6dcbcbbc04f1c58c7f37b..9a5dd818e069a52fe5ee7463ddda6817c80022e8 100644
--- a/base/base64_unittest.cc
+++ b/base/base64_unittest.cc
@@ -1,29 +1,28 @@
-// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 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.
#include "base/base64.h"
-#include "testing/gtest/include/gtest/gtest.h"
-
-namespace {
-class Base64Test : public testing::Test {
-};
+#include "testing/gtest/include/gtest/gtest.h"
-} // namespace
+namespace base {
TEST(Base64Test, Basic) {
const std::string kText = "hello world";
const std::string kBase64Text = "aGVsbG8gd29ybGQ=";
- std::string encoded, decoded;
+ std::string encoded;
+ std::string decoded;
bool ok;
- ok = base::Base64Encode(kText, &encoded);
+ ok = Base64Encode(kText, &encoded);
EXPECT_TRUE(ok);
EXPECT_EQ(kBase64Text, encoded);
- ok = base::Base64Decode(encoded, &decoded);
+ ok = Base64Decode(encoded, &decoded);
EXPECT_TRUE(ok);
EXPECT_EQ(kText, decoded);
}
+
+} // namespace base
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698