OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/stringprintf.h" | 5 #include "base/stringprintf.h" |
| 6 #include "base/utf_string_conversions.h" |
6 #include "chrome/browser/background_contents_service.h" | 7 #include "chrome/browser/background_contents_service.h" |
7 #include "chrome/browser/background_contents_service_factory.h" | 8 #include "chrome/browser/background_contents_service_factory.h" |
8 #include "chrome/browser/extensions/extension_apitest.h" | 9 #include "chrome/browser/extensions/extension_apitest.h" |
9 #include "chrome/browser/extensions/extension_service.h" | 10 #include "chrome/browser/extensions/extension_service.h" |
10 #include "chrome/browser/profiles/profile.h" | 11 #include "chrome/browser/profiles/profile.h" |
11 #include "chrome/browser/ui/browser.h" | 12 #include "chrome/browser/ui/browser.h" |
12 #include "chrome/common/chrome_switches.h" | 13 #include "chrome/common/chrome_switches.h" |
13 #include "chrome/common/extensions/extension.h" | 14 #include "chrome/common/extensions/extension.h" |
14 #include "chrome/test/ui_test_utils.h" | 15 #include "chrome/test/ui_test_utils.h" |
15 #include "net/base/mock_host_resolver.h" | 16 #include "net/base/mock_host_resolver.h" |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 | 123 |
123 FilePath app_dir; | 124 FilePath app_dir; |
124 ASSERT_TRUE(CreateApp(app_manifest, &app_dir)); | 125 ASSERT_TRUE(CreateApp(app_manifest, &app_dir)); |
125 ASSERT_TRUE(LoadExtension(app_dir)); | 126 ASSERT_TRUE(LoadExtension(app_dir)); |
126 | 127 |
127 const Extension* extension = GetSingleLoadedExtension(); | 128 const Extension* extension = GetSingleLoadedExtension(); |
128 ASSERT_TRUE( | 129 ASSERT_TRUE( |
129 BackgroundContentsServiceFactory::GetForProfile(browser()->profile())-> | 130 BackgroundContentsServiceFactory::GetForProfile(browser()->profile())-> |
130 GetAppBackgroundContents(ASCIIToUTF16(extension->id()))); | 131 GetAppBackgroundContents(ASCIIToUTF16(extension->id()))); |
131 } | 132 } |
OLD | NEW |