| 6 | // |
| 7 | // https://www.apache.org/licenses/LICENSE-2.0 |
| 8 | // |
| 9 | // Unless required by applicable law or agreed to in writing, software |
| 10 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | // See the License for the specific language governing permissions and |
| 13 | // limitations under the License. |
| 14 |
| 15 | #if !defined(BORINGSSL_SHARED_LIBRARY) |
| 16 |
| 17 | #include <gtest/gtest.h> |
| 18 |
| 19 | #include <openssl/x509.h> |
| 20 |
| 21 | #include "../internal.h" |
| 22 | #include "ext_dat.h" |
| 23 |
| 24 | // Check ext_data.h is correct. |
| 25 | TEST(X509V3Test, TabTest) { |
| 26 | EXPECT_EQ(OPENSSL_ARRAY_SIZE(standard_exts), STANDARD_EXTENSION_COUNT); |
| 27 | for (size_t i = 1; i < OPENSSL_ARRAY_SIZE(standard_exts); i++) { |
| 28 | SCOPED_TRACE(i); |
| 29 | EXPECT_LT(standard_exts[i-1]->ext_nid, standard_exts[i]->ext_nid); |
| 30 | } |
| 31 | } |
| 32 |
| 33 | #endif // !BORINGSSL_SHARED_LIBRARY |
| 34 |