OLD | NEW |
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 "chrome/browser/policy/user_cloud_policy_store.h" | 5 #include "chrome/browser/policy/cloud/user_cloud_policy_store.h" |
6 | 6 |
7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
8 #include "base/files/scoped_temp_dir.h" | 8 #include "base/files/scoped_temp_dir.h" |
9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
10 #include "base/run_loop.h" | 10 #include "base/run_loop.h" |
11 #include "chrome/browser/policy/mock_cloud_policy_store.h" | 11 #include "chrome/browser/policy/cloud/mock_cloud_policy_store.h" |
12 #include "chrome/browser/policy/policy_builder.h" | 12 #include "chrome/browser/policy/cloud/policy_builder.h" |
13 #include "chrome/browser/signin/signin_manager.h" | 13 #include "chrome/browser/signin/signin_manager.h" |
14 #include "chrome/browser/signin/signin_manager_factory.h" | 14 #include "chrome/browser/signin/signin_manager_factory.h" |
15 #include "chrome/browser/signin/signin_manager_fake.h" | 15 #include "chrome/browser/signin/signin_manager_fake.h" |
16 #include "chrome/test/base/testing_profile.h" | 16 #include "chrome/test/base/testing_profile.h" |
17 #include "content/public/test/test_browser_thread.h" | 17 #include "content/public/test/test_browser_thread.h" |
18 #include "policy/policy_constants.h" | 18 #include "policy/policy_constants.h" |
19 #include "testing/gmock/include/gmock/gmock.h" | 19 #include "testing/gmock/include/gmock/gmock.h" |
20 #include "testing/gtest/include/gtest/gtest.h" | 20 #include "testing/gtest/include/gtest/gtest.h" |
21 | 21 |
22 using testing::AllOf; | 22 using testing::AllOf; |
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
310 store2->Load(); | 310 store2->Load(); |
311 RunUntilIdle(); | 311 RunUntilIdle(); |
312 | 312 |
313 ASSERT_FALSE(store2->policy()); | 313 ASSERT_FALSE(store2->policy()); |
314 store2->RemoveObserver(&observer_); | 314 store2->RemoveObserver(&observer_); |
315 } | 315 } |
316 | 316 |
317 } // namespace | 317 } // namespace |
318 | 318 |
319 } // namespace policy | 319 } // namespace policy |
OLD | NEW |