| 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 "chrome/browser/extensions/extension_service_unittest.h" | 5 #include "chrome/browser/extensions/extension_service_unittest.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <set> | 8 #include <set> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 #include "chrome/common/extensions/extension_constants.h" | 54 #include "chrome/common/extensions/extension_constants.h" |
| 55 #include "chrome/common/extensions/extension_resource.h" | 55 #include "chrome/common/extensions/extension_resource.h" |
| 56 #include "chrome/common/extensions/url_pattern.h" | 56 #include "chrome/common/extensions/url_pattern.h" |
| 57 #include "chrome/common/pref_names.h" | 57 #include "chrome/common/pref_names.h" |
| 58 #include "chrome/common/url_constants.h" | 58 #include "chrome/common/url_constants.h" |
| 59 #include "chrome/test/base/testing_profile.h" | 59 #include "chrome/test/base/testing_profile.h" |
| 60 #include "content/browser/appcache/chrome_appcache_service.h" | 60 #include "content/browser/appcache/chrome_appcache_service.h" |
| 61 #include "content/browser/file_system/browser_file_system_helper.h" | 61 #include "content/browser/file_system/browser_file_system_helper.h" |
| 62 #include "content/browser/in_process_webkit/dom_storage_context.h" | 62 #include "content/browser/in_process_webkit/dom_storage_context.h" |
| 63 #include "content/browser/in_process_webkit/webkit_context.h" | 63 #include "content/browser/in_process_webkit/webkit_context.h" |
| 64 #include "content/browser/plugin_service.h" | 64 #include "content/browser/plugin_service_impl.h" |
| 65 #include "content/public/browser/notification_registrar.h" | 65 #include "content/public/browser/notification_registrar.h" |
| 66 #include "content/public/browser/notification_service.h" | 66 #include "content/public/browser/notification_service.h" |
| 67 #include "content/test/test_browser_thread.h" | 67 #include "content/test/test_browser_thread.h" |
| 68 #include "googleurl/src/gurl.h" | 68 #include "googleurl/src/gurl.h" |
| 69 #include "net/base/cookie_monster.h" | 69 #include "net/base/cookie_monster.h" |
| 70 #include "net/base/cookie_options.h" | 70 #include "net/base/cookie_options.h" |
| 71 #include "net/url_request/url_request_context.h" | 71 #include "net/url_request/url_request_context.h" |
| 72 #include "net/url_request/url_request_context_getter.h" | 72 #include "net/url_request/url_request_context_getter.h" |
| 73 #include "testing/gtest/include/gtest/gtest.h" | 73 #include "testing/gtest/include/gtest/gtest.h" |
| 74 #include "testing/platform_test.h" | 74 #include "testing/platform_test.h" |
| (...skipping 4305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4380 ASSERT_FALSE(AddPendingSyncInstall()); | 4380 ASSERT_FALSE(AddPendingSyncInstall()); |
| 4381 | 4381 |
| 4382 // Wait for the external source to install. | 4382 // Wait for the external source to install. |
| 4383 WaitForCrxInstall(crx_path_, INSTALL_NEW); | 4383 WaitForCrxInstall(crx_path_, INSTALL_NEW); |
| 4384 ASSERT_TRUE(IsCrxInstalled()); | 4384 ASSERT_TRUE(IsCrxInstalled()); |
| 4385 | 4385 |
| 4386 // Now that the extension is installed, sync request should fail | 4386 // Now that the extension is installed, sync request should fail |
| 4387 // because the extension is already installed. | 4387 // because the extension is already installed. |
| 4388 ASSERT_FALSE(AddPendingSyncInstall()); | 4388 ASSERT_FALSE(AddPendingSyncInstall()); |
| 4389 } | 4389 } |
| OLD | NEW |