| OLD | NEW |
| 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/extensions/device_local_account_external_polic
y_loader.h" | 5 #include "chrome/browser/chromeos/extensions/device_local_account_external_polic
y_loader.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/callback.h" | 9 #include "base/callback.h" |
| 10 #include "base/files/file_util.h" | 10 #include "base/files/file_util.h" |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 MockExternalPolicyProviderVisitor::~MockExternalPolicyProviderVisitor() { | 90 MockExternalPolicyProviderVisitor::~MockExternalPolicyProviderVisitor() { |
| 91 } | 91 } |
| 92 | 92 |
| 93 } // namespace | 93 } // namespace |
| 94 | 94 |
| 95 class DeviceLocalAccountExternalPolicyLoaderTest : public testing::Test { | 95 class DeviceLocalAccountExternalPolicyLoaderTest : public testing::Test { |
| 96 protected: | 96 protected: |
| 97 DeviceLocalAccountExternalPolicyLoaderTest(); | 97 DeviceLocalAccountExternalPolicyLoaderTest(); |
| 98 virtual ~DeviceLocalAccountExternalPolicyLoaderTest(); | 98 virtual ~DeviceLocalAccountExternalPolicyLoaderTest(); |
| 99 | 99 |
| 100 virtual void SetUp() OVERRIDE; | 100 virtual void SetUp() override; |
| 101 virtual void TearDown() OVERRIDE; | 101 virtual void TearDown() override; |
| 102 | 102 |
| 103 void VerifyAndResetVisitorCallExpectations(); | 103 void VerifyAndResetVisitorCallExpectations(); |
| 104 void SetForceInstallListPolicy(); | 104 void SetForceInstallListPolicy(); |
| 105 | 105 |
| 106 content::TestBrowserThreadBundle thread_bundle_; | 106 content::TestBrowserThreadBundle thread_bundle_; |
| 107 base::ScopedTempDir temp_dir_; | 107 base::ScopedTempDir temp_dir_; |
| 108 base::FilePath cache_dir_; | 108 base::FilePath cache_dir_; |
| 109 policy::MockCloudPolicyStore store_; | 109 policy::MockCloudPolicyStore store_; |
| 110 scoped_refptr<net::URLRequestContextGetter> request_context_getter_; | 110 scoped_refptr<net::URLRequestContextGetter> request_context_getter_; |
| 111 base::FilePath test_dir_; | 111 base::FilePath test_dir_; |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 300 loader_->StopCache(shutdown_run_loop.QuitClosure()); | 300 loader_->StopCache(shutdown_run_loop.QuitClosure()); |
| 301 VerifyAndResetVisitorCallExpectations(); | 301 VerifyAndResetVisitorCallExpectations(); |
| 302 | 302 |
| 303 // Spin the loop until the cache shutdown callback is invoked. Verify that at | 303 // Spin the loop until the cache shutdown callback is invoked. Verify that at |
| 304 // that point, no further file I/O tasks are pending. | 304 // that point, no further file I/O tasks are pending. |
| 305 shutdown_run_loop.Run(); | 305 shutdown_run_loop.Run(); |
| 306 EXPECT_TRUE(base::MessageLoop::current()->IsIdleForTesting()); | 306 EXPECT_TRUE(base::MessageLoop::current()->IsIdleForTesting()); |
| 307 } | 307 } |
| 308 | 308 |
| 309 } // namespace chromeos | 309 } // namespace chromeos |
| OLD | NEW |