| 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 "chromeos/network/auto_connect_handler.h" | 5 #include "chromeos/network/auto_connect_handler.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 #include "crypto/scoped_nss_types.h" | 30 #include "crypto/scoped_nss_types.h" |
| 31 #include "crypto/scoped_test_nss_db.h" | 31 #include "crypto/scoped_test_nss_db.h" |
| 32 #include "net/base/net_errors.h" | 32 #include "net/base/net_errors.h" |
| 33 #include "net/base/test_data_directory.h" | 33 #include "net/base/test_data_directory.h" |
| 34 #include "net/cert/nss_cert_database_chromeos.h" | 34 #include "net/cert/nss_cert_database_chromeos.h" |
| 35 #include "net/cert/x509_certificate.h" | 35 #include "net/cert/x509_certificate.h" |
| 36 #include "net/test/cert_test_util.h" | 36 #include "net/test/cert_test_util.h" |
| 37 #include "testing/gtest/include/gtest/gtest.h" | 37 #include "testing/gtest/include/gtest/gtest.h" |
| 38 #include "third_party/cros_system_api/dbus/service_constants.h" | 38 #include "third_party/cros_system_api/dbus/service_constants.h" |
| 39 | 39 |
| 40 // http://crbug.com/418369 | |
| 41 #ifdef NDEBUG | |
| 42 | |
| 43 namespace chromeos { | 40 namespace chromeos { |
| 44 | 41 |
| 45 namespace { | 42 namespace { |
| 46 | 43 |
| 47 const char* kUserHash = "user_hash"; | 44 const char* kUserHash = "user_hash"; |
| 48 | 45 |
| 49 void ConfigureCallback(const dbus::ObjectPath& result) { | 46 void ConfigureCallback(const dbus::ObjectPath& result) { |
| 50 } | 47 } |
| 51 | 48 |
| 52 void FailErrorCallback(const std::string& error_name, | 49 void FailErrorCallback(const std::string& error_name, |
| (...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 464 // Applying the user policy after login would usually trigger connecting to | 461 // Applying the user policy after login would usually trigger connecting to |
| 465 // the 'best' network. But the manual connect prevents this. | 462 // the 'best' network. But the manual connect prevents this. |
| 466 SetupPolicy(std::string(), // no network configs | 463 SetupPolicy(std::string(), // no network configs |
| 467 base::DictionaryValue(), // no global config | 464 base::DictionaryValue(), // no global config |
| 468 true); // load as user policy | 465 true); // load as user policy |
| 469 EXPECT_EQ(shill::kStateOnline, GetServiceState("wifi0")); | 466 EXPECT_EQ(shill::kStateOnline, GetServiceState("wifi0")); |
| 470 EXPECT_EQ(shill::kStateIdle, GetServiceState("wifi1")); | 467 EXPECT_EQ(shill::kStateIdle, GetServiceState("wifi1")); |
| 471 } | 468 } |
| 472 | 469 |
| 473 } // namespace chromeos | 470 } // namespace chromeos |
| 474 | |
| 475 #endif | |
| OLD | NEW |