| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "platform/network/ResourceResponse.h" |
| 6 |
| 7 #include "testing/gtest/include/gtest/gtest.h" |
| 8 |
| 9 namespace blink { |
| 10 |
| 11 TEST(ResourceResponseTest, SignedCertificateTimestampIsolatedCopy) |
| 12 { |
| 13 ResourceResponse::SignedCertificateTimestamp src( |
| 14 "status", |
| 15 "origin", |
| 16 "logDescription", |
| 17 "logId", |
| 18 7, |
| 19 "hashAlgorithm", |
| 20 "signatureAlgorithm", |
| 21 "signatureData"); |
| 22 |
| 23 ResourceResponse::SignedCertificateTimestamp dest = src.isolatedCopy(); |
| 24 |
| 25 EXPECT_EQ(src.m_status, dest.m_status); |
| 26 EXPECT_NE(src.m_status.impl(), dest.m_status.impl()); |
| 27 EXPECT_EQ(src.m_origin, dest.m_origin); |
| 28 EXPECT_NE(src.m_origin.impl(), dest.m_origin.impl()); |
| 29 EXPECT_EQ(src.m_logDescription, dest.m_logDescription); |
| 30 EXPECT_NE(src.m_logDescription.impl(), dest.m_logDescription.impl()); |
| 31 EXPECT_EQ(src.m_logId, dest.m_logId); |
| 32 EXPECT_NE(src.m_logId.impl(), dest.m_logId.impl()); |
| 33 EXPECT_EQ(src.m_timestamp, dest.m_timestamp); |
| 34 EXPECT_EQ(src.m_hashAlgorithm, dest.m_hashAlgorithm); |
| 35 EXPECT_NE(src.m_hashAlgorithm.impl(), dest.m_hashAlgorithm.impl()); |
| 36 EXPECT_EQ(src.m_signatureAlgorithm, dest.m_signatureAlgorithm); |
| 37 EXPECT_NE(src.m_signatureAlgorithm.impl(), dest.m_signatureAlgorithm.impl())
; |
| 38 EXPECT_EQ(src.m_signatureData, dest.m_signatureData); |
| 39 EXPECT_NE(src.m_signatureData.impl(), dest.m_signatureData.impl()); |
| 40 } |
| 41 |
| 42 } // namespace blink |
| OLD | NEW |