tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

ssl_misc_unittest.cc (634B)


      1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
      2 /* vim: set ts=2 et sw=2 tw=80: */
      3 /* This Source Code Form is subject to the terms of the Mozilla Public
      4 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
      5 * You can obtain one at http://mozilla.org/MPL/2.0/. */
      6 
      7 #include "sslexp.h"
      8 
      9 #include "gtest_utils.h"
     10 
     11 namespace nss_test {
     12 
     13 class MiscTest : public ::testing::Test {};
     14 
     15 TEST_F(MiscTest, NonExistentExperimentalAPI) {
     16  EXPECT_EQ(nullptr, SSL_GetExperimentalAPI("blah"));
     17  EXPECT_EQ(SSL_ERROR_UNSUPPORTED_EXPERIMENTAL_API, PORT_GetError());
     18 }
     19 
     20 }  // namespace nss_test