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

Side by Side Diff: chrome/browser/policy/policy_statistics_collector_unittest.cc

Issue 78763002: Move PolicyMap and its dependencies to components/policy/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: export nested struct Created 7 years, 1 month 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) 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 <cstring> 5 #include <cstring>
6 #include <string> 6 #include <string>
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "base/prefs/pref_registry_simple.h" 11 #include "base/prefs/pref_registry_simple.h"
12 #include "base/prefs/testing_pref_service.h" 12 #include "base/prefs/testing_pref_service.h"
13 #include "base/test/test_simple_task_runner.h" 13 #include "base/test/test_simple_task_runner.h"
14 #include "base/values.h" 14 #include "base/values.h"
15 #include "chrome/browser/policy/external_data_fetcher.h"
16 #include "chrome/browser/policy/mock_policy_service.h" 15 #include "chrome/browser/policy/mock_policy_service.h"
17 #include "chrome/browser/policy/policy_map.h"
18 #include "chrome/browser/policy/policy_statistics_collector.h" 16 #include "chrome/browser/policy/policy_statistics_collector.h"
19 #include "chrome/browser/policy/policy_types.h"
20 #include "chrome/browser/policy/test/policy_test_utils.h" 17 #include "chrome/browser/policy/test/policy_test_utils.h"
18 #include "components/policy/core/common/external_data_fetcher.h"
19 #include "components/policy/core/common/policy_map.h"
21 #include "components/policy/core/common/policy_pref_names.h" 20 #include "components/policy/core/common/policy_pref_names.h"
21 #include "components/policy/core/common/policy_types.h"
22 #include "testing/gmock/include/gmock/gmock.h" 22 #include "testing/gmock/include/gmock/gmock.h"
23 #include "testing/gtest/include/gtest/gtest.h" 23 #include "testing/gtest/include/gtest/gtest.h"
24 24
25 namespace policy { 25 namespace policy {
26 26
27 namespace { 27 namespace {
28 28
29 using testing::ReturnRef; 29 using testing::ReturnRef;
30 30
31 // Arbitrary policy names used for testing. 31 // Arbitrary policy names used for testing.
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 EXPECT_CALL(*policy_statistics_collector_.get(), 182 EXPECT_CALL(*policy_statistics_collector_.get(),
183 RecordPolicyUse(kTestPolicy1Id)); 183 RecordPolicyUse(kTestPolicy1Id));
184 EXPECT_CALL(*policy_statistics_collector_.get(), 184 EXPECT_CALL(*policy_statistics_collector_.get(),
185 RecordPolicyUse(kTestPolicy2Id)); 185 RecordPolicyUse(kTestPolicy2Id));
186 186
187 policy_statistics_collector_->Initialize(); 187 policy_statistics_collector_->Initialize();
188 EXPECT_EQ(1u, task_runner_->GetPendingTasks().size()); 188 EXPECT_EQ(1u, task_runner_->GetPendingTasks().size());
189 } 189 }
190 190
191 } // namespace policy 191 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698