| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "base/bind.h" | 5 #include "base/bind.h" |
| 6 #include "base/macros.h" |
| 6 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
| 7 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
| 8 #include "base/values.h" | 9 #include "base/values.h" |
| 9 #include "chromeos/dbus/dbus_thread_manager.h" | 10 #include "chromeos/dbus/dbus_thread_manager.h" |
| 10 #include "chromeos/dbus/fake_shill_device_client.h" | 11 #include "chromeos/dbus/fake_shill_device_client.h" |
| 11 #include "chromeos/dbus/fake_shill_manager_client.h" | 12 #include "chromeos/dbus/fake_shill_manager_client.h" |
| 12 #include "chromeos/network/network_device_handler_impl.h" | 13 #include "chromeos/network/network_device_handler_impl.h" |
| 13 #include "chromeos/network/network_state_handler.h" | 14 #include "chromeos/network/network_state_handler.h" |
| 14 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
| 15 #include "third_party/cros_system_api/dbus/service_constants.h" | 16 #include "third_party/cros_system_api/dbus/service_constants.h" |
| (...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 388 | 389 |
| 389 // Test that the shill error propagates to the error callback. | 390 // Test that the shill error propagates to the error callback. |
| 390 network_device_handler_->ChangePin(kDefaultCellularDevicePath, kIncorrectPin, | 391 network_device_handler_->ChangePin(kDefaultCellularDevicePath, kIncorrectPin, |
| 391 kNewPin, success_callback_, | 392 kNewPin, success_callback_, |
| 392 error_callback_); | 393 error_callback_); |
| 393 message_loop_.RunUntilIdle(); | 394 message_loop_.RunUntilIdle(); |
| 394 EXPECT_EQ(NetworkDeviceHandler::kErrorIncorrectPin, result_); | 395 EXPECT_EQ(NetworkDeviceHandler::kErrorIncorrectPin, result_); |
| 395 } | 396 } |
| 396 | 397 |
| 397 } // namespace chromeos | 398 } // namespace chromeos |
| OLD | NEW |