Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(215)

Side by Side Diff: chromeos/network/managed_network_configuration_handler_unittest.cc

Issue 289383004: Merge FavoriteState into NetworkState (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « chromeos/network/managed_network_configuration_handler_impl.cc ('k') | chromeos/network/managed_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698