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

Side by Side Diff: third_party/WebKit/Source/platform/network/ResourceResponseTest.cpp

Issue 2135143002: Implement SignedCertificateTimestamp::isolatedCopy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 4 years, 5 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
« no previous file with comments | « third_party/WebKit/Source/platform/network/ResourceResponse.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/network/ResourceResponse.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698