| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |