| 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/extensions/external_provider_impl.h" | 5 #include "chrome/browser/extensions/external_provider_impl.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
| 9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 #include "content/public/browser/notification_service.h" | 25 #include "content/public/browser/notification_service.h" |
| 26 #include "content/public/test/test_utils.h" | 26 #include "content/public/test/test_utils.h" |
| 27 #include "net/test/embedded_test_server/embedded_test_server.h" | 27 #include "net/test/embedded_test_server/embedded_test_server.h" |
| 28 #include "net/test/embedded_test_server/http_request.h" | 28 #include "net/test/embedded_test_server/http_request.h" |
| 29 #include "net/test/embedded_test_server/http_response.h" | 29 #include "net/test/embedded_test_server/http_response.h" |
| 30 #include "testing/gmock/include/gmock/gmock.h" | 30 #include "testing/gmock/include/gmock/gmock.h" |
| 31 | 31 |
| 32 #if defined(OS_CHROMEOS) | 32 #if defined(OS_CHROMEOS) |
| 33 #include "chrome/browser/chromeos/customization_document.h" | 33 #include "chrome/browser/chromeos/customization_document.h" |
| 34 #include "chrome/browser/chromeos/login/users/fake_user_manager.h" | 34 #include "chrome/browser/chromeos/login/users/fake_user_manager.h" |
| 35 #include "chrome/browser/chromeos/login/users/scoped_user_manager_enabler.h" |
| 35 #include "chromeos/system/mock_statistics_provider.h" | 36 #include "chromeos/system/mock_statistics_provider.h" |
| 36 #include "chromeos/system/statistics_provider.h" | 37 #include "chromeos/system/statistics_provider.h" |
| 37 #endif | 38 #endif |
| 38 | 39 |
| 39 using ::testing::_; | 40 using ::testing::_; |
| 40 using ::testing::NotNull; | 41 using ::testing::NotNull; |
| 41 using ::testing::Return; | 42 using ::testing::Return; |
| 42 | 43 |
| 43 namespace extensions { | 44 namespace extensions { |
| 44 | 45 |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 service_->CheckForExternalUpdates(); | 172 service_->CheckForExternalUpdates(); |
| 172 runner->Run(); | 173 runner->Run(); |
| 173 | 174 |
| 174 EXPECT_TRUE(service_->GetInstalledExtension( | 175 EXPECT_TRUE(service_->GetInstalledExtension( |
| 175 extension_misc::kInAppPaymentsSupportAppId)); | 176 extension_misc::kInAppPaymentsSupportAppId)); |
| 176 EXPECT_TRUE(service_->IsExtensionEnabled( | 177 EXPECT_TRUE(service_->IsExtensionEnabled( |
| 177 extension_misc::kInAppPaymentsSupportAppId)); | 178 extension_misc::kInAppPaymentsSupportAppId)); |
| 178 } | 179 } |
| 179 | 180 |
| 180 } // namespace extensions | 181 } // namespace extensions |
| OLD | NEW |