OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 <iostream> | 5 #include <iostream> |
6 #include <sstream> | 6 #include <sstream> |
7 | 7 |
8 #include "base/bind.h" | 8 #include "base/bind.h" |
9 #include "base/location.h" | 9 #include "base/location.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 } | 127 } |
128 | 128 |
129 protected: | 129 protected: |
130 base::DictionaryValue profile_entries_; | 130 base::DictionaryValue profile_entries_; |
131 std::map<std::string, std::string> profile_to_user_; | 131 std::map<std::string, std::string> profile_to_user_; |
132 }; | 132 }; |
133 | 133 |
134 class TestNetworkProfileHandler : public NetworkProfileHandler { | 134 class TestNetworkProfileHandler : public NetworkProfileHandler { |
135 public: | 135 public: |
136 TestNetworkProfileHandler() { | 136 TestNetworkProfileHandler() { |
137 Init(NULL /* No NetworkStateHandler */); | 137 Init(); |
138 } | 138 } |
139 virtual ~TestNetworkProfileHandler() {} | 139 virtual ~TestNetworkProfileHandler() {} |
140 | 140 |
141 void AddProfileForTest(const NetworkProfile& profile) { | 141 void AddProfileForTest(const NetworkProfile& profile) { |
142 AddProfile(profile); | 142 AddProfile(profile); |
143 } | 143 } |
144 | 144 |
145 private: | 145 private: |
146 DISALLOW_COPY_AND_ASSIGN(TestNetworkProfileHandler); | 146 DISALLOW_COPY_AND_ASSIGN(TestNetworkProfileHandler); |
147 }; | 147 }; |
(...skipping 570 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
718 | 718 |
719 EXPECT_CALL(*mock_profile_client_, | 719 EXPECT_CALL(*mock_profile_client_, |
720 GetProperties(dbus::ObjectPath(kUser1ProfilePath), _, _)); | 720 GetProperties(dbus::ObjectPath(kUser1ProfilePath), _, _)); |
721 | 721 |
722 SetPolicy(::onc::ONC_SOURCE_USER_POLICY, kUser1, "policy/policy_wifi1.onc"); | 722 SetPolicy(::onc::ONC_SOURCE_USER_POLICY, kUser1, "policy/policy_wifi1.onc"); |
723 managed_network_configuration_handler_.reset(); | 723 managed_network_configuration_handler_.reset(); |
724 message_loop_.RunUntilIdle(); | 724 message_loop_.RunUntilIdle(); |
725 } | 725 } |
726 | 726 |
727 } // namespace chromeos | 727 } // namespace chromeos |
OLD | NEW |