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

Side by Side Diff: net/http/http_mac_signature_unittest.cc

Issue 6901121: MAC Cookies (patch 2 of N) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: MAC Cookies (patch 2 of N) Created 9 years, 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "testing/gtest/include/gtest/gtest.h" 5 #include "testing/gtest/include/gtest/gtest.h"
6 #include "net/http/http_mac_signature.h" 6 #include "net/http/http_mac_signature.h"
7 7
8 namespace net { 8 namespace net {
9 9
10 TEST(HttpMacSignatureTest, BogusAddStateInfo) { 10 TEST(HttpMacSignatureTest, BogusAddStateInfo) {
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 "eXaMple.com", 100 "eXaMple.com",
101 80)); 101 80));
102 102
103 std::string timestamp = "239034"; 103 std::string timestamp = "239034";
104 std::string nonce = "mn4302j0n+32r2/f3r="; 104 std::string nonce = "mn4302j0n+32r2/f3r=";
105 105
106 EXPECT_EQ("zQWLNI5eHOfY5/wCJ6yzZ8bXDw==", 106 EXPECT_EQ("zQWLNI5eHOfY5/wCJ6yzZ8bXDw==",
107 signature.GenerateMAC(timestamp, nonce)); 107 signature.GenerateMAC(timestamp, nonce));
108 } 108 }
109 } 109 }
OLDNEW
« net/http/http_mac_signature.h ('K') | « net/http/http_mac_signature.cc ('k') | net/net.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698