|
1 | 1 | /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
|
2 | 2 | /*
|
3 |
| - * Copyright (c) 2014-2023, Regents of the University of California |
| 3 | + * Copyright (c) 2014-2024, Regents of the University of California |
4 | 4 | *
|
5 | 5 | * NAC library is free software: you can redistribute it and/or modify it under the
|
6 | 6 | * terms of the GNU Lesser General Public License as published by the Free Software
|
|
22 | 22 | #include "tests/boost-test.hpp"
|
23 | 23 | #include "tests/io-key-chain-fixture.hpp"
|
24 | 24 |
|
25 |
| -#include <iostream> |
26 | 25 | #include <ndn-cxx/util/dummy-client-face.hpp>
|
27 | 26 | #include <ndn-cxx/util/string-helper.hpp>
|
28 | 27 |
|
| 28 | +#include <iostream> |
| 29 | + |
29 | 30 | namespace ndn::nac::tests {
|
30 | 31 |
|
31 | 32 | class AccessManagerFixture : public IoKeyChainFixture
|
@@ -104,31 +105,32 @@ BOOST_AUTO_TEST_CASE(EnumerateDataFromIms)
|
104 | 105 |
|
105 | 106 | BOOST_AUTO_TEST_CASE(GenerateTestData,
|
106 | 107 | * ut::description("regenerates the static test data used by other test cases")
|
107 |
| - * ut::disabled()) |
| 108 | + * ut::disabled() |
| 109 | + * ut::label("generator")) |
108 | 110 | {
|
109 | 111 | std::cerr << "const Block nacIdentity = \"";
|
110 | 112 | auto block = m_keyChain.exportSafeBag(nacIdentity.getDefaultKey().getDefaultCertificate(),
|
111 | 113 | "password", strlen("password"))->wireEncode();
|
112 | 114 | printHex(std::cerr, block, true);
|
113 |
| - std::cerr << "\"_block;\n\n"; |
| 115 | + std::cerr << "\"_block;\n"; |
114 | 116 |
|
115 |
| - std::cerr << "const std::vector<Block> userIdentities = {\n"; |
| 117 | + std::cerr << "const std::vector<Block> userIdentities{\n"; |
116 | 118 | for (const auto& userId : userIdentities) {
|
117 | 119 | std::cerr << " \"";
|
118 | 120 | block = m_keyChain.exportSafeBag(userId.getDefaultKey().getDefaultCertificate(),
|
119 | 121 | "password", strlen("password"))->wireEncode();
|
120 | 122 | printHex(std::cerr, block, true);
|
121 | 123 | std::cerr << "\"_block,\n";
|
122 | 124 | }
|
123 |
| - std::cerr << "};\n\n"; |
| 125 | + std::cerr << "};\n"; |
124 | 126 |
|
125 |
| - std::cerr << "const std::vector<Block> managerPackets = {\n"; |
| 127 | + std::cerr << "const std::vector<Block> managerPackets{\n"; |
126 | 128 | for (const auto& data : manager) {
|
127 | 129 | std::cerr << " \"";
|
128 | 130 | printHex(std::cerr, data.wireEncode(), true);
|
129 | 131 | std::cerr << "\"_block,\n";
|
130 | 132 | }
|
131 |
| - std::cerr << "};\n\n"; |
| 133 | + std::cerr << "};\n"; |
132 | 134 | }
|
133 | 135 |
|
134 | 136 | BOOST_AUTO_TEST_SUITE_END()
|
|
0 commit comments