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 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 public: | 75 public: |
76 MockExternalPolicyProviderVisitor(); | 76 MockExternalPolicyProviderVisitor(); |
77 virtual ~MockExternalPolicyProviderVisitor(); | 77 virtual ~MockExternalPolicyProviderVisitor(); |
78 | 78 |
79 MOCK_METHOD1(OnExternalExtensionFileFound, | 79 MOCK_METHOD1(OnExternalExtensionFileFound, |
80 bool(const ExternalInstallInfoFile&)); | 80 bool(const ExternalInstallInfoFile&)); |
81 MOCK_METHOD2(OnExternalExtensionUpdateUrlFound, | 81 MOCK_METHOD2(OnExternalExtensionUpdateUrlFound, |
82 bool(const ExternalInstallInfoUpdateUrl&, bool)); | 82 bool(const ExternalInstallInfoUpdateUrl&, bool)); |
83 MOCK_METHOD1(OnExternalProviderReady, | 83 MOCK_METHOD1(OnExternalProviderReady, |
84 void(const extensions::ExternalProviderInterface* provider)); | 84 void(const extensions::ExternalProviderInterface* provider)); |
85 MOCK_METHOD4(OnExternalProviderUpdateComplete, | 85 MOCK_METHOD4( |
86 void(const extensions::ExternalProviderInterface*, | 86 OnExternalProviderUpdateComplete, |
87 const ScopedVector<ExternalInstallInfoUpdateUrl>&, | 87 void(const extensions::ExternalProviderInterface*, |
88 const ScopedVector<ExternalInstallInfoFile>&, | 88 const std::vector<std::unique_ptr<ExternalInstallInfoUpdateUrl>>&, |
89 const std::set<std::string>& removed_extensions)); | 89 const std::vector<std::unique_ptr<ExternalInstallInfoFile>>&, |
| 90 const std::set<std::string>& removed_extensions)); |
90 | 91 |
91 private: | 92 private: |
92 DISALLOW_COPY_AND_ASSIGN(MockExternalPolicyProviderVisitor); | 93 DISALLOW_COPY_AND_ASSIGN(MockExternalPolicyProviderVisitor); |
93 }; | 94 }; |
94 | 95 |
95 MockExternalPolicyProviderVisitor::MockExternalPolicyProviderVisitor() { | 96 MockExternalPolicyProviderVisitor::MockExternalPolicyProviderVisitor() { |
96 } | 97 } |
97 | 98 |
98 MockExternalPolicyProviderVisitor::~MockExternalPolicyProviderVisitor() { | 99 MockExternalPolicyProviderVisitor::~MockExternalPolicyProviderVisitor() { |
99 } | 100 } |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
311 loader_->StopCache(shutdown_run_loop.QuitClosure()); | 312 loader_->StopCache(shutdown_run_loop.QuitClosure()); |
312 VerifyAndResetVisitorCallExpectations(); | 313 VerifyAndResetVisitorCallExpectations(); |
313 | 314 |
314 // Spin the loop until the cache shutdown callback is invoked. Verify that at | 315 // Spin the loop until the cache shutdown callback is invoked. Verify that at |
315 // that point, no further file I/O tasks are pending. | 316 // that point, no further file I/O tasks are pending. |
316 shutdown_run_loop.Run(); | 317 shutdown_run_loop.Run(); |
317 EXPECT_TRUE(base::MessageLoop::current()->IsIdleForTesting()); | 318 EXPECT_TRUE(base::MessageLoop::current()->IsIdleForTesting()); |
318 } | 319 } |
319 | 320 |
320 } // namespace chromeos | 321 } // namespace chromeos |
OLD | NEW |