OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/certificate_provider/certificate_provider_serv
ice.h" | 5 #include "chrome/browser/chromeos/certificate_provider/certificate_provider_serv
ice.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 #include <set> | 8 #include <set> |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
11 #include "base/bind.h" | 11 #include "base/bind.h" |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "base/stl_util.h" | 13 #include "base/stl_util.h" |
14 #include "base/test/test_mock_time_task_runner.h" | 14 #include "base/test/test_mock_time_task_runner.h" |
15 #include "base/threading/thread_task_runner_handle.h" | 15 #include "base/threading/thread_task_runner_handle.h" |
16 #include "chrome/browser/chromeos/certificate_provider/certificate_provider.h" | 16 #include "chrome/browser/chromeos/certificate_provider/certificate_provider.h" |
17 #include "net/base/net_errors.h" | 17 #include "net/base/net_errors.h" |
18 #include "net/base/test_data_directory.h" | |
19 #include "net/ssl/client_key_store.h" | 18 #include "net/ssl/client_key_store.h" |
20 #include "net/test/cert_test_util.h" | 19 #include "net/test/cert_test_util.h" |
| 20 #include "net/test/test_data_directory.h" |
21 #include "testing/gtest/include/gtest/gtest.h" | 21 #include "testing/gtest/include/gtest/gtest.h" |
22 | 22 |
23 namespace chromeos { | 23 namespace chromeos { |
24 | 24 |
25 namespace { | 25 namespace { |
26 | 26 |
27 const char kExtension1[] = "extension1"; | 27 const char kExtension1[] = "extension1"; |
28 const char kExtension2[] = "extension2"; | 28 const char kExtension2[] = "extension2"; |
29 | 29 |
30 void ExpectEmptySignatureAndStoreError(net::Error* out_error, | 30 void ExpectEmptySignatureAndStoreError(net::Error* out_error, |
(...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
479 EXPECT_EQ(net::OK, error); | 479 EXPECT_EQ(net::OK, error); |
480 | 480 |
481 // Unload the extension. | 481 // Unload the extension. |
482 service_->OnExtensionUnloaded(kExtension1); | 482 service_->OnExtensionUnloaded(kExtension1); |
483 | 483 |
484 task_runner_->RunUntilIdle(); | 484 task_runner_->RunUntilIdle(); |
485 EXPECT_EQ(net::ERR_FAILED, error); | 485 EXPECT_EQ(net::ERR_FAILED, error); |
486 } | 486 } |
487 | 487 |
488 } // namespace chromeos | 488 } // namespace chromeos |
OLD | NEW |