Check USB device path access when prompting users to select a device.
[chromium-blink-merge.git] / net / ssl / ssl_connection_status_flags_unittest.cc
blob98e4f53b3fd339ac3b451bf0a6cd9f653656f5b7
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "net/ssl/ssl_connection_status_flags.h"
7 #include "testing/gtest/include/gtest/gtest.h"
9 namespace net {
11 namespace {
13 TEST(SSLConnectionStatusTest, SetCipherSuite) {
14 int connection_status = 0xDEADBEEF;
15 int expected_version = SSLConnectionStatusToVersion(connection_status);
17 SSLConnectionStatusSetCipherSuite(12345, &connection_status);
18 EXPECT_EQ(12345U, SSLConnectionStatusToCipherSuite(connection_status));
19 EXPECT_EQ(expected_version, SSLConnectionStatusToVersion(connection_status));
22 TEST(SSLConnectionStatusTest, SetVersion) {
23 int connection_status = 0xDEADBEEF;
24 uint16 expected_cipher_suite =
25 SSLConnectionStatusToCipherSuite(connection_status);
27 SSLConnectionStatusSetVersion(SSL_CONNECTION_VERSION_TLS1_2,
28 &connection_status);
29 EXPECT_EQ(SSL_CONNECTION_VERSION_TLS1_2,
30 SSLConnectionStatusToVersion(connection_status));
31 EXPECT_EQ(expected_cipher_suite,
32 SSLConnectionStatusToCipherSuite(connection_status));
35 } // namespace
37 } // namespace net