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/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" |
(...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
490 return true; | 490 return true; |
491 return false; | 491 return false; |
492 } | 492 } |
493 | 493 |
494 scoped_ptr<NetworkStateHandler> network_state_handler_; | 494 scoped_ptr<NetworkStateHandler> network_state_handler_; |
495 scoped_ptr<NetworkConfigurationHandler> network_configuration_handler_; | 495 scoped_ptr<NetworkConfigurationHandler> network_configuration_handler_; |
496 scoped_ptr<TestObserver> test_observer_; | 496 scoped_ptr<TestObserver> test_observer_; |
497 base::MessageLoopForUI message_loop_; | 497 base::MessageLoopForUI message_loop_; |
498 std::string success_callback_name_; | 498 std::string success_callback_name_; |
499 std::string get_properties_path_; | 499 std::string get_properties_path_; |
500 scoped_ptr<DictionaryValue> get_properties_; | 500 scoped_ptr<base::DictionaryValue> get_properties_; |
501 std::string create_service_path_; | 501 std::string create_service_path_; |
502 }; | 502 }; |
503 | 503 |
504 TEST_F(NetworkConfigurationHandlerStubTest, StubSetAndClearProperties) { | 504 TEST_F(NetworkConfigurationHandlerStubTest, StubSetAndClearProperties) { |
505 // TODO(stevenjb): Remove dependency on default Stub service. | 505 // TODO(stevenjb): Remove dependency on default Stub service. |
506 const std::string service_path("wifi1"); | 506 const std::string service_path("wifi1"); |
507 const std::string test_identity("test_identity"); | 507 const std::string test_identity("test_identity"); |
508 const std::string test_passphrase("test_passphrase"); | 508 const std::string test_passphrase("test_passphrase"); |
509 | 509 |
510 // Set Properties | 510 // Set Properties |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
617 create_service_path_, shill::kGuidProperty, &guid)); | 617 create_service_path_, shill::kGuidProperty, &guid)); |
618 EXPECT_EQ(service_path, guid); | 618 EXPECT_EQ(service_path, guid); |
619 | 619 |
620 std::string actual_profile; | 620 std::string actual_profile; |
621 EXPECT_TRUE(GetServiceStringProperty( | 621 EXPECT_TRUE(GetServiceStringProperty( |
622 create_service_path_, shill::kProfileProperty, &actual_profile)); | 622 create_service_path_, shill::kProfileProperty, &actual_profile)); |
623 EXPECT_EQ(shill_stub_helper::kSharedProfilePath, actual_profile); | 623 EXPECT_EQ(shill_stub_helper::kSharedProfilePath, actual_profile); |
624 } | 624 } |
625 | 625 |
626 } // namespace chromeos | 626 } // namespace chromeos |
OLD | NEW |