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

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

Issue 824683002: UserManager stack refactoring. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Split for FakeManager complete. Created 5 years, 11 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
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/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 26 matching lines...) Expand all
37 #include "components/policy/core/common/cloud/policy_builder.h" 37 #include "components/policy/core/common/cloud/policy_builder.h"
38 #include "components/policy/core/common/external_data_fetcher.h" 38 #include "components/policy/core/common/external_data_fetcher.h"
39 #include "components/policy/core/common/mock_configuration_policy_provider.h" 39 #include "components/policy/core/common/mock_configuration_policy_provider.h"
40 #include "components/policy/core/common/policy_map.h" 40 #include "components/policy/core/common/policy_map.h"
41 #include "components/policy/core/common/policy_service.h" 41 #include "components/policy/core/common/policy_service.h"
42 #include "components/policy/core/common/policy_service_impl.h" 42 #include "components/policy/core/common/policy_service_impl.h"
43 #include "components/policy/core/common/policy_types.h" 43 #include "components/policy/core/common/policy_types.h"
44 #include "content/public/browser/notification_details.h" 44 #include "content/public/browser/notification_details.h"
45 #include "content/public/browser/notification_service.h" 45 #include "content/public/browser/notification_service.h"
46 #include "content/public/browser/notification_source.h" 46 #include "content/public/browser/notification_source.h"
47 #include "net/base/net_errors.h"
ygorshenin1 2015/01/20 18:33:40 Why do you need this?
merkulova 2015/01/21 14:10:34 Removed.
47 #include "net/url_request/test_url_fetcher_factory.h" 48 #include "net/url_request/test_url_fetcher_factory.h"
48 #include "net/url_request/url_fetcher_delegate.h" 49 #include "net/url_request/url_fetcher_delegate.h"
49 #include "net/url_request/url_request_context_getter.h" 50 #include "net/url_request/url_request_context_getter.h"
50 #include "net/url_request/url_request_status.h" 51 #include "net/url_request/url_request_status.h"
51 #include "policy/policy_constants.h" 52 #include "policy/policy_constants.h"
52 #include "policy/proto/cloud_policy.pb.h" 53 #include "policy/proto/cloud_policy.pb.h"
53 #include "testing/gmock/include/gmock/gmock.h" 54 #include "testing/gmock/include/gmock/gmock.h"
54 #include "testing/gtest/include/gtest/gtest.h" 55 #include "testing/gtest/include/gtest/gtest.h"
55 #include "url/gurl.h" 56 #include "url/gurl.h"
56 57
(...skipping 890 matching lines...) Expand 10 before | Expand all | Expand 10 after
947 948
948 EXPECT_TRUE(set_calls_.empty()); 949 EXPECT_TRUE(set_calls_.empty());
949 EXPECT_TRUE(cleared_calls_.empty()); 950 EXPECT_TRUE(cleared_calls_.empty());
950 ASSERT_EQ(1u, fetched_calls_.size()); 951 ASSERT_EQ(1u, fetched_calls_.size());
951 EXPECT_EQ(kRegularUserID, fetched_calls_.front().first); 952 EXPECT_EQ(kRegularUserID, fetched_calls_.front().first);
952 EXPECT_EQ(avatar_policy_2_data_, fetched_calls_.front().second); 953 EXPECT_EQ(avatar_policy_2_data_, fetched_calls_.front().second);
953 ClearObservations(); 954 ClearObservations();
954 } 955 }
955 956
956 } // namespace policy 957 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698