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