OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 #include "chrome/common/pref_names.h" | 65 #include "chrome/common/pref_names.h" |
66 #include "chrome/common/string_ordinal.h" | 66 #include "chrome/common/string_ordinal.h" |
67 #include "chrome/common/url_constants.h" | 67 #include "chrome/common/url_constants.h" |
68 #include "chrome/test/base/testing_profile.h" | 68 #include "chrome/test/base/testing_profile.h" |
69 #include "content/public/browser/dom_storage_context.h" | 69 #include "content/public/browser/dom_storage_context.h" |
70 #include "content/public/browser/indexed_db_context.h" | 70 #include "content/public/browser/indexed_db_context.h" |
71 #include "content/public/browser/notification_registrar.h" | 71 #include "content/public/browser/notification_registrar.h" |
72 #include "content/public/browser/notification_service.h" | 72 #include "content/public/browser/notification_service.h" |
73 #include "content/public/browser/plugin_service.h" | 73 #include "content/public/browser/plugin_service.h" |
74 #include "content/public/common/content_constants.h" | 74 #include "content/public/common/content_constants.h" |
75 #include "content/test/test_browser_thread.h" | 75 #include "content/public/test/test_browser_thread.h" |
76 #include "googleurl/src/gurl.h" | 76 #include "googleurl/src/gurl.h" |
77 #include "grit/browser_resources.h" | 77 #include "grit/browser_resources.h" |
78 #include "net/cookies/cookie_monster.h" | 78 #include "net/cookies/cookie_monster.h" |
79 #include "net/cookies/cookie_options.h" | 79 #include "net/cookies/cookie_options.h" |
80 #include "net/url_request/url_request_context.h" | 80 #include "net/url_request/url_request_context.h" |
81 #include "net/url_request/url_request_context_getter.h" | 81 #include "net/url_request/url_request_context_getter.h" |
82 #include "sync/api/sync_error_factory.h" | 82 #include "sync/api/sync_error_factory.h" |
83 #include "sync/api/sync_error_factory_mock.h" | 83 #include "sync/api/sync_error_factory_mock.h" |
84 #include "sync/protocol/app_specifics.pb.h" | 84 #include "sync/protocol/app_specifics.pb.h" |
85 #include "sync/protocol/extension_specifics.pb.h" | 85 #include "sync/protocol/extension_specifics.pb.h" |
(...skipping 5098 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5184 provider->UpdateOrAddExtension(hosted_app, "1.0.0.0", | 5184 provider->UpdateOrAddExtension(hosted_app, "1.0.0.0", |
5185 data_dir_.AppendASCII("hosted_app.crx")); | 5185 data_dir_.AppendASCII("hosted_app.crx")); |
5186 | 5186 |
5187 service_->CheckForExternalUpdates(); | 5187 service_->CheckForExternalUpdates(); |
5188 loop_.RunAllPending(); | 5188 loop_.RunAllPending(); |
5189 | 5189 |
5190 ASSERT_TRUE(service_->PopulateExtensionGlobalError( | 5190 ASSERT_TRUE(service_->PopulateExtensionGlobalError( |
5191 extension_global_error.get())); | 5191 extension_global_error.get())); |
5192 ASSERT_EQ(1u, extension_global_error->get_external_extension_ids()->size()); | 5192 ASSERT_EQ(1u, extension_global_error->get_external_extension_ids()->size()); |
5193 } | 5193 } |
OLD | NEW |