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

Side by Side Diff: net/tools/transport_security_state_generator/pinsets.h

Issue 2660793002: Add transport security state generator tests. (Closed)
Patch Set: export method for tests Created 3 years, 10 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 (c) 2016 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 #ifndef NET_TOOLS_TRANSPORT_SECURITY_STATE_GENERATOR_PINSETS_H_ 5 #ifndef NET_TOOLS_TRANSPORT_SECURITY_STATE_GENERATOR_PINSETS_H_
6 #define NET_TOOLS_TRANSPORT_SECURITY_STATE_GENERATOR_PINSETS_H_ 6 #define NET_TOOLS_TRANSPORT_SECURITY_STATE_GENERATOR_PINSETS_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 #include <string> 10 #include <string>
11 11
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "base/strings/string_piece.h" 13 #include "base/strings/string_piece.h"
14 #include "net/tools/transport_security_state_generator/cert_util.h" 14 #include "net/tools/transport_security_state_generator/cert_util.h"
15 #include "net/tools/transport_security_state_generator/pinset.h" 15 #include "net/tools/transport_security_state_generator/pinset.h"
16 #include "net/tools/transport_security_state_generator/pinsets.h"
17 #include "net/tools/transport_security_state_generator/spki_hash.h" 16 #include "net/tools/transport_security_state_generator/spki_hash.h"
18 17
19 namespace net { 18 namespace net {
20 19
21 namespace transport_security_state { 20 namespace transport_security_state {
22 21
23 // Contains SPKIHashes and their names. The names are used to reference 22 // Contains SPKIHashes and their names. The names are used to reference
24 // the hashes from Pinset's. 23 // the hashes from Pinset's.
25 using SPKIHashMap = std::map<std::string, SPKIHash>; 24 using SPKIHashMap = std::map<std::string, SPKIHash>;
26 using PinsetMap = std::map<std::string, std::unique_ptr<Pinset>>; 25 using PinsetMap = std::map<std::string, std::unique_ptr<Pinset>>;
(...skipping 20 matching lines...) Expand all
47 PinsetMap pinsets_; 46 PinsetMap pinsets_;
48 47
49 DISALLOW_COPY_AND_ASSIGN(Pinsets); 48 DISALLOW_COPY_AND_ASSIGN(Pinsets);
50 }; 49 };
51 50
52 } // namespace transport_security_state 51 } // namespace transport_security_state
53 52
54 } // namespace net 53 } // namespace net
55 54
56 #endif // NET_TOOLS_TRANSPORT_SECURITY_STATE_GENERATOR_PINSETS_H_ 55 #endif // NET_TOOLS_TRANSPORT_SECURITY_STATE_GENERATOR_PINSETS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698