Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 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 "components/cast_certificate/cast_cert_validator_test_helpers.h" | 5 #include "components/cast_certificate/cast_cert_validator_test_helpers.h" |
| 6 | 6 |
| 7 #include "base/files/file_util.h" | 7 #include "base/files/file_util.h" |
| 8 #include "base/path_service.h" | 8 #include "base/path_service.h" |
| 9 #include "net/cert/pem_tokenizer.h" | 9 #include "net/cert/pem_tokenizer.h" |
| 10 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 79 } | 79 } |
| 80 } | 80 } |
| 81 | 81 |
| 82 EXPECT_FALSE(result.message.empty()); | 82 EXPECT_FALSE(result.message.empty()); |
| 83 EXPECT_FALSE(result.signature_sha1.empty()); | 83 EXPECT_FALSE(result.signature_sha1.empty()); |
| 84 EXPECT_FALSE(result.signature_sha256.empty()); | 84 EXPECT_FALSE(result.signature_sha256.empty()); |
| 85 | 85 |
| 86 return result; | 86 return result; |
| 87 } | 87 } |
| 88 | 88 |
| 89 std::string ReadFromFile(const base::StringPiece& file_name) { | |
|
eroman
2016/07/12 21:22:00
This function seems unnecessary -- How about inste
ryanchung
2016/07/14 16:15:25
Done.
| |
| 90 std::string file_data = ReadTestFileToString(file_name); | |
| 91 | |
| 92 EXPECT_FALSE(file_data.empty()); | |
| 93 return file_data; | |
| 94 } | |
| 95 | |
| 89 } // namespace testing | 96 } // namespace testing |
| 90 | 97 |
| 91 } // namespace cast_certificate | 98 } // namespace cast_certificate |
| OLD | NEW |