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

Unified Diff: base/unguessable_token_unittest.cc

Issue 2353663003: Add base::UnguessableToken << operator (Closed)
Patch Set: Addressed comment. Created 4 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 | « base/unguessable_token.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/unguessable_token_unittest.cc
diff --git a/base/unguessable_token_unittest.cc b/base/unguessable_token_unittest.cc
index c4c435fed835b8de41f182c441801aa6bbce5b3b..dcc5db933e18950a2e4c3f513559c7a17b5eff41 100644
--- a/base/unguessable_token_unittest.cc
+++ b/base/unguessable_token_unittest.cc
@@ -4,6 +4,7 @@
#include "base/unguessable_token.h"
+#include <sstream>
#include <type_traits>
#include "testing/gtest/include/gtest/gtest.h"
@@ -70,6 +71,10 @@ TEST(UnguessableTokenTest, VerifyToString) {
std::string expected = "(0000012300000ABC)";
EXPECT_EQ(expected, token.ToString());
+
+ std::stringstream stream;
+ stream << token;
+ EXPECT_EQ(expected, stream.str());
}
TEST(UnguessableTokenTest, VerifySmallerThanOperator) {
« no previous file with comments | « base/unguessable_token.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698