OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "net/cert/ct_log_response_parser.h" | 5 #include "net/cert/ct_log_response_parser.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/base64.h" | 10 #include "base/base64.h" |
11 #include "base/json/json_reader.h" | 11 #include "base/json/json_reader.h" |
12 #include "base/strings/stringprintf.h" | |
13 #include "base/time/time.h" | 12 #include "base/time/time.h" |
14 #include "base/values.h" | 13 #include "base/values.h" |
15 #include "net/cert/ct_serialization.h" | 14 #include "net/cert/ct_serialization.h" |
16 #include "net/cert/signed_tree_head.h" | 15 #include "net/cert/signed_tree_head.h" |
17 #include "net/test/ct_test_util.h" | 16 #include "net/test/ct_test_util.h" |
18 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
19 | 18 |
20 namespace net { | 19 namespace net { |
21 | 20 |
22 namespace ct { | 21 namespace ct { |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 std::vector<std::string> output; | 157 std::vector<std::string> output; |
159 | 158 |
160 std::unique_ptr<base::Value> badly_encoded = | 159 std::unique_ptr<base::Value> badly_encoded = |
161 ParseJson(std::string("{\"consistency\": [], \"somethingelse\": 3}")); | 160 ParseJson(std::string("{\"consistency\": [], \"somethingelse\": 3}")); |
162 EXPECT_TRUE(FillConsistencyProof(*badly_encoded.get(), &output)); | 161 EXPECT_TRUE(FillConsistencyProof(*badly_encoded.get(), &output)); |
163 } | 162 } |
164 | 163 |
165 } // namespace ct | 164 } // namespace ct |
166 | 165 |
167 } // namespace net | 166 } // namespace net |
OLD | NEW |