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 "base/bind.h" | 5 #include "base/bind.h" |
6 #include "base/json/json_writer.h" | 6 #include "base/json/json_writer.h" |
7 #include "base/message_loop.h" | 7 #include "base/message_loop/message_loop.h" |
8 #include "base/strings/string_piece.h" | 8 #include "base/strings/string_piece.h" |
9 #include "base/values.h" | 9 #include "base/values.h" |
10 #include "chromeos/dbus/dbus_thread_manager.h" | 10 #include "chromeos/dbus/dbus_thread_manager.h" |
11 #include "chromeos/dbus/mock_dbus_thread_manager.h" | 11 #include "chromeos/dbus/mock_dbus_thread_manager.h" |
12 #include "chromeos/dbus/mock_shill_manager_client.h" | 12 #include "chromeos/dbus/mock_shill_manager_client.h" |
13 #include "chromeos/dbus/mock_shill_profile_client.h" | 13 #include "chromeos/dbus/mock_shill_profile_client.h" |
14 #include "chromeos/dbus/mock_shill_service_client.h" | 14 #include "chromeos/dbus/mock_shill_service_client.h" |
15 #include "chromeos/network/network_configuration_handler.h" | 15 #include "chromeos/network/network_configuration_handler.h" |
16 #include "chromeos/network/network_state_handler.h" | 16 #include "chromeos/network/network_state_handler.h" |
17 #include "testing/gmock/include/gmock/gmock.h" | 17 #include "testing/gmock/include/gmock/gmock.h" |
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
362 network_configuration_handler_->RemoveConfiguration( | 362 network_configuration_handler_->RemoveConfiguration( |
363 service_path, | 363 service_path, |
364 base::Bind(&TestCallback::Run, base::Unretained(&test_callback)), | 364 base::Bind(&TestCallback::Run, base::Unretained(&test_callback)), |
365 base::Bind(&ErrorCallback, false, service_path)); | 365 base::Bind(&ErrorCallback, false, service_path)); |
366 message_loop_.RunUntilIdle(); | 366 message_loop_.RunUntilIdle(); |
367 EXPECT_EQ(1, test_callback.run_count()); | 367 EXPECT_EQ(1, test_callback.run_count()); |
368 EXPECT_FALSE(PendingProfileEntryDeleterForTest(service_path)); | 368 EXPECT_FALSE(PendingProfileEntryDeleterForTest(service_path)); |
369 } | 369 } |
370 | 370 |
371 } // namespace chromeos | 371 } // namespace chromeos |
OLD | NEW |