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

Side by Side Diff: chrome/browser/chromeos/policy/cloud_external_data_policy_observer_unittest.cc

Issue 348713004: Use a TestBrowserThreadBundle in the DeviceSettingsTestBase. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "chrome/browser/chromeos/policy/cloud_external_data_policy_observer.h" 5 #include "chrome/browser/chromeos/policy/cloud_external_data_policy_observer.h"
6 6
7 #include <utility> 7 #include <utility>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/file_util.h" 10 #include "base/file_util.h"
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 170
171 CloudExternalDataPolicyObserverTest::~CloudExternalDataPolicyObserverTest() { 171 CloudExternalDataPolicyObserverTest::~CloudExternalDataPolicyObserverTest() {
172 } 172 }
173 173
174 void CloudExternalDataPolicyObserverTest::SetUp() { 174 void CloudExternalDataPolicyObserverTest::SetUp() {
175 chromeos::DeviceSettingsTestBase::SetUp(); 175 chromeos::DeviceSettingsTestBase::SetUp();
176 device_local_account_policy_service_.reset( 176 device_local_account_policy_service_.reset(
177 new DeviceLocalAccountPolicyService(&device_settings_test_helper_, 177 new DeviceLocalAccountPolicyService(&device_settings_test_helper_,
178 &device_settings_service_, 178 &device_settings_service_,
179 &cros_settings_, 179 &cros_settings_,
180 loop_.message_loop_proxy(), 180 base::MessageLoopProxy::current(),
181 loop_.message_loop_proxy(), 181 base::MessageLoopProxy::current(),
182 loop_.message_loop_proxy(), 182 base::MessageLoopProxy::current(),
183 loop_.message_loop_proxy(), 183 base::MessageLoopProxy::current(),
184 NULL)); 184 NULL));
185 url_fetcher_factory_.set_remove_fetcher_on_delete(true); 185 url_fetcher_factory_.set_remove_fetcher_on_delete(true);
186 186
187 EXPECT_CALL(user_policy_provider_, IsInitializationComplete(_)) 187 EXPECT_CALL(user_policy_provider_, IsInitializationComplete(_))
188 .WillRepeatedly(Return(true)); 188 .WillRepeatedly(Return(true));
189 user_policy_provider_.Init(); 189 user_policy_provider_.Init();
190 190
191 ConstructAvatarPolicy("avatar1.jpg", 191 ConstructAvatarPolicy("avatar1.jpg",
192 kAvatar1URL, 192 kAvatar1URL,
193 &avatar_policy_1_data_, 193 &avatar_policy_1_data_,
(...skipping 742 matching lines...) Expand 10 before | Expand all | Expand 10 after
936 936
937 EXPECT_TRUE(set_calls_.empty()); 937 EXPECT_TRUE(set_calls_.empty());
938 EXPECT_TRUE(cleared_calls_.empty()); 938 EXPECT_TRUE(cleared_calls_.empty());
939 ASSERT_EQ(1u, fetched_calls_.size()); 939 ASSERT_EQ(1u, fetched_calls_.size());
940 EXPECT_EQ(kRegularUserID, fetched_calls_.front().first); 940 EXPECT_EQ(kRegularUserID, fetched_calls_.front().first);
941 EXPECT_EQ(avatar_policy_2_data_, fetched_calls_.front().second); 941 EXPECT_EQ(avatar_policy_2_data_, fetched_calls_.front().second);
942 ClearObservations(); 942 ClearObservations();
943 } 943 }
944 944
945 } // namespace policy 945 } // namespace policy
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698