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

Side by Side Diff: components/cast_certificate/cast_cert_validator_test_helpers.cc

Issue 2050983002: Cast device revocation checking. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: (Rebase only) 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
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698