• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 1999-2016 The OpenSSL Project Authors. All Rights Reserved.
3  *
4  * Licensed under the OpenSSL license (the "License").  You may not use
5  * this file except in compliance with the License.  You can obtain a copy
6  * in the file LICENSE in the source distribution or at
7  * https://www.openssl.org/source/license.html
8  */
9 
10 #if !defined(BORINGSSL_SHARED_LIBRARY)
11 
12 #include <gtest/gtest.h>
13 
14 #include <openssl/x509.h>
15 
16 #include "../internal.h"
17 #include "ext_dat.h"
18 
19 // Check ext_data.h is correct.
TEST(X509V3Test,TabTest)20 TEST(X509V3Test, TabTest) {
21   EXPECT_EQ(OPENSSL_ARRAY_SIZE(standard_exts), STANDARD_EXTENSION_COUNT);
22   for (size_t i = 1; i < OPENSSL_ARRAY_SIZE(standard_exts); i++) {
23     SCOPED_TRACE(i);
24     EXPECT_LT(standard_exts[i-1]->ext_nid, standard_exts[i]->ext_nid);
25   }
26 }
27 
28 #endif  // !BORINGSSL_SHARED_LIBRARY
29