| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chrome/browser/chromeos/cros/onc_network_parser.h" | 5 #include "chrome/browser/chromeos/cros/onc_network_parser.h" |
| 6 | 6 |
| 7 #include <cert.h> | 7 #include <cert.h> |
| 8 #include <keyhi.h> | 8 #include <keyhi.h> |
| 9 #include <pk11pub.h> | 9 #include <pk11pub.h> |
| 10 | 10 |
| 11 #include "base/file_util.h" | 11 #include "base/file_util.h" |
| 12 #include "base/json/json_value_serializer.h" | 12 #include "base/json/json_string_value_serializer.h" |
| 13 #include "base/lazy_instance.h" | 13 #include "base/lazy_instance.h" |
| 14 #include "base/message_loop.h" | 14 #include "base/message_loop.h" |
| 15 #include "base/path_service.h" | 15 #include "base/path_service.h" |
| 16 #include "base/stringprintf.h" | 16 #include "base/stringprintf.h" |
| 17 #include "base/threading/thread_restrictions.h" | 17 #include "base/threading/thread_restrictions.h" |
| 18 #include "base/values.h" | 18 #include "base/values.h" |
| 19 #include "chrome/browser/chromeos/cros/certificate_pattern.h" | 19 #include "chrome/browser/chromeos/cros/certificate_pattern.h" |
| 20 #include "chrome/browser/chromeos/cros/cros_library.h" | 20 #include "chrome/browser/chromeos/cros/cros_library.h" |
| 21 #include "chrome/browser/chromeos/cros/network_library.h" | 21 #include "chrome/browser/chromeos/cros/network_library.h" |
| 22 #include "chrome/browser/chromeos/dbus/dbus_thread_manager.h" | 22 #include "chrome/browser/chromeos/dbus/dbus_thread_manager.h" |
| (...skipping 884 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 907 UserManager::Get()->UserLoggedIn("onc@example.com"); | 907 UserManager::Get()->UserLoggedIn("onc@example.com"); |
| 908 EXPECT_EQ("a onc b", | 908 EXPECT_EQ("a onc b", |
| 909 chromeos::OncNetworkParser::GetUserExpandedValue( | 909 chromeos::OncNetworkParser::GetUserExpandedValue( |
| 910 login_id_pattern, source)); | 910 login_id_pattern, source)); |
| 911 EXPECT_EQ("a onc@example.com b", | 911 EXPECT_EQ("a onc@example.com b", |
| 912 chromeos::OncNetworkParser::GetUserExpandedValue( | 912 chromeos::OncNetworkParser::GetUserExpandedValue( |
| 913 login_email_pattern, source)); | 913 login_email_pattern, source)); |
| 914 } | 914 } |
| 915 | 915 |
| 916 } // namespace chromeos | 916 } // namespace chromeos |
| OLD | NEW |