OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "base/bind.h" | 5 #include "base/bind.h" |
6 #include "base/location.h" | 6 #include "base/location.h" |
7 #include "base/run_loop.h" | 7 #include "base/run_loop.h" |
8 #include "base/single_thread_task_runner.h" | 8 #include "base/single_thread_task_runner.h" |
9 #include "base/thread_task_runner_handle.h" | 9 #include "base/threading/thread_task_runner_handle.h" |
10 #include "chrome/browser/extensions/extension_install_checker.h" | 10 #include "chrome/browser/extensions/extension_install_checker.h" |
11 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
12 | 12 |
13 namespace extensions { | 13 namespace extensions { |
14 | 14 |
15 namespace { | 15 namespace { |
16 | 16 |
17 const BlacklistState kBlacklistStateError = BLACKLISTED_MALWARE; | 17 const BlacklistState kBlacklistStateError = BLACKLISTED_MALWARE; |
18 const char kDummyRequirementsError[] = "Requirements error"; | 18 const char kDummyRequirementsError[] = "Requirements error"; |
19 const char kDummyPolicyError[] = "Cannot install extension"; | 19 const char kDummyPolicyError[] = "Cannot install extension"; |
(...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
479 ExtensionInstallChecker::CHECK_ALL, | 479 ExtensionInstallChecker::CHECK_ALL, |
480 true /* fail fast */, | 480 true /* fail fast */, |
481 base::Bind( | 481 base::Bind( |
482 &ExtensionInstallCheckerMultipleInvocationTest::RunSecondInvocation, | 482 &ExtensionInstallCheckerMultipleInvocationTest::RunSecondInvocation, |
483 base::Unretained(this), | 483 base::Unretained(this), |
484 &checker)); | 484 &checker)); |
485 base::RunLoop().RunUntilIdle(); | 485 base::RunLoop().RunUntilIdle(); |
486 } | 486 } |
487 | 487 |
488 } // namespace extensions | 488 } // namespace extensions |
OLD | NEW |