| 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/macros.h" |
| 5 #include "base/memory/scoped_ptr.h" | 6 #include "base/memory/scoped_ptr.h" |
| 6 #include "chrome/browser/extensions/extension_browsertest.h" | 7 #include "chrome/browser/extensions/extension_browsertest.h" |
| 7 #include "chrome/browser/extensions/webstore_startup_installer.h" | 8 #include "chrome/browser/extensions/webstore_startup_installer.h" |
| 8 #include "chrome/browser/profiles/profile.h" | 9 #include "chrome/browser/profiles/profile.h" |
| 9 #include "chrome/browser/search/hotword_service.h" | 10 #include "chrome/browser/search/hotword_service.h" |
| 10 #include "chrome/browser/search/hotword_service_factory.h" | 11 #include "chrome/browser/search/hotword_service_factory.h" |
| 11 #include "chrome/common/chrome_switches.h" | 12 #include "chrome/common/chrome_switches.h" |
| 12 #include "chrome/common/extensions/extension_constants.h" | 13 #include "chrome/common/extensions/extension_constants.h" |
| 13 #include "chrome/common/extensions/webstore_install_result.h" | 14 #include "chrome/common/extensions/webstore_install_result.h" |
| 14 #include "chrome/test/base/testing_profile.h" | 15 #include "chrome/test/base/testing_profile.h" |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 TestingProfile test_profile; | 94 TestingProfile test_profile; |
| 94 HotwordServiceFactory* hotword_service_factory = | 95 HotwordServiceFactory* hotword_service_factory = |
| 95 HotwordServiceFactory::GetInstance(); | 96 HotwordServiceFactory::GetInstance(); |
| 96 MockHotwordService* hotword_service = static_cast<MockHotwordService*>( | 97 MockHotwordService* hotword_service = static_cast<MockHotwordService*>( |
| 97 hotword_service_factory->SetTestingFactoryAndUse( | 98 hotword_service_factory->SetTestingFactoryAndUse( |
| 98 &test_profile, BuildMockHotwordService)); | 99 &test_profile, BuildMockHotwordService)); |
| 99 hotword_service->InstallHotwordExtensionFromWebstore(1); | 100 hotword_service->InstallHotwordExtensionFromWebstore(1); |
| 100 } | 101 } |
| 101 | 102 |
| 102 } // namespace extensions | 103 } // namespace extensions |
| OLD | NEW |