| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "components/wifi_sync/wifi_security_class.h" | 5 #include "components/sync_wifi/wifi_security_class.h" |
| 6 | 6 |
| 7 #include "testing/gtest/include/gtest/gtest.h" | 7 #include "testing/gtest/include/gtest/gtest.h" |
| 8 #include "third_party/cros_system_api/dbus/service_constants.h" | 8 #include "third_party/cros_system_api/dbus/service_constants.h" |
| 9 | 9 |
| 10 namespace wifi_sync { | 10 namespace sync_wifi { |
| 11 | 11 |
| 12 TEST(WifiSecurityClassTest, FromShillSecurityToEnum) { | 12 TEST(WifiSecurityClassTest, FromShillSecurityToEnum) { |
| 13 EXPECT_EQ(SECURITY_CLASS_NONE, | 13 EXPECT_EQ(SECURITY_CLASS_NONE, |
| 14 WifiSecurityClassFromShillSecurity(shill::kSecurityNone)); | 14 WifiSecurityClassFromShillSecurity(shill::kSecurityNone)); |
| 15 EXPECT_EQ(SECURITY_CLASS_WEP, | 15 EXPECT_EQ(SECURITY_CLASS_WEP, |
| 16 WifiSecurityClassFromShillSecurity(shill::kSecurityWep)); | 16 WifiSecurityClassFromShillSecurity(shill::kSecurityWep)); |
| 17 EXPECT_EQ(SECURITY_CLASS_PSK, | 17 EXPECT_EQ(SECURITY_CLASS_PSK, |
| 18 WifiSecurityClassFromShillSecurity(shill::kSecurityPsk)); | 18 WifiSecurityClassFromShillSecurity(shill::kSecurityPsk)); |
| 19 EXPECT_EQ(SECURITY_CLASS_802_1X, | 19 EXPECT_EQ(SECURITY_CLASS_802_1X, |
| 20 WifiSecurityClassFromShillSecurity(shill::kSecurity8021x)); | 20 WifiSecurityClassFromShillSecurity(shill::kSecurity8021x)); |
| 21 EXPECT_EQ(SECURITY_CLASS_INVALID, | 21 EXPECT_EQ(SECURITY_CLASS_INVALID, |
| 22 WifiSecurityClassFromShillSecurity("bogus-security-class")); | 22 WifiSecurityClassFromShillSecurity("bogus-security-class")); |
| 23 } | 23 } |
| 24 | 24 |
| 25 } // namespace wifi_sync | 25 } // namespace sync_wifi |
| OLD | NEW |