OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 <algorithm> | 5 #include <algorithm> |
6 #include <set> | 6 #include <set> |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/at_exit.h" | 9 #include "base/at_exit.h" |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 #include "sync/api/sync_data.h" | 117 #include "sync/api/sync_data.h" |
118 #include "sync/api/sync_error_factory.h" | 118 #include "sync/api/sync_error_factory.h" |
119 #include "sync/api/sync_error_factory_mock.h" | 119 #include "sync/api/sync_error_factory_mock.h" |
120 #include "sync/api/syncable_service.h" | 120 #include "sync/api/syncable_service.h" |
121 #include "sync/protocol/app_specifics.pb.h" | 121 #include "sync/protocol/app_specifics.pb.h" |
122 #include "sync/protocol/extension_specifics.pb.h" | 122 #include "sync/protocol/extension_specifics.pb.h" |
123 #include "sync/protocol/sync.pb.h" | 123 #include "sync/protocol/sync.pb.h" |
124 #include "testing/gtest/include/gtest/gtest.h" | 124 #include "testing/gtest/include/gtest/gtest.h" |
125 #include "testing/platform_test.h" | 125 #include "testing/platform_test.h" |
126 #include "url/gurl.h" | 126 #include "url/gurl.h" |
127 #include "webkit/browser/database/database_tracker.h" | 127 #include "storage/browser/database/database_tracker.h" |
128 #include "webkit/browser/quota/quota_manager.h" | 128 #include "storage/browser/quota/quota_manager.h" |
129 #include "webkit/common/database/database_identifier.h" | 129 #include "storage/common/database/database_identifier.h" |
130 | 130 |
131 #if defined(OS_CHROMEOS) | 131 #if defined(OS_CHROMEOS) |
132 #include "chrome/browser/chromeos/login/users/scoped_test_user_manager.h" | 132 #include "chrome/browser/chromeos/login/users/scoped_test_user_manager.h" |
133 #include "chrome/browser/chromeos/settings/cros_settings.h" | 133 #include "chrome/browser/chromeos/settings/cros_settings.h" |
134 #include "chrome/browser/chromeos/settings/device_settings_service.h" | 134 #include "chrome/browser/chromeos/settings/device_settings_service.h" |
135 #endif | 135 #endif |
136 | 136 |
137 // The blacklist tests rely on safe browsing. | 137 // The blacklist tests rely on safe browsing. |
138 #if defined(FULL_SAFE_BROWSING) || defined(MOBILE_SAFE_BROWSING) | 138 #if defined(FULL_SAFE_BROWSING) || defined(MOBILE_SAFE_BROWSING) |
139 #define ENABLE_BLACKLIST_TESTS | 139 #define ENABLE_BLACKLIST_TESTS |
(...skipping 7012 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7152 | 7152 |
7153 service()->Observe(chrome::NOTIFICATION_PROFILE_DESTRUCTION_STARTED, | 7153 service()->Observe(chrome::NOTIFICATION_PROFILE_DESTRUCTION_STARTED, |
7154 content::Source<Profile>(profile()), | 7154 content::Source<Profile>(profile()), |
7155 content::NotificationService::NoDetails()); | 7155 content::NotificationService::NoDetails()); |
7156 EXPECT_EQ(UnloadedExtensionInfo::REASON_PROFILE_SHUTDOWN, unloaded_reason_); | 7156 EXPECT_EQ(UnloadedExtensionInfo::REASON_PROFILE_SHUTDOWN, unloaded_reason_); |
7157 EXPECT_EQ(0u, registry()->enabled_extensions().size()); | 7157 EXPECT_EQ(0u, registry()->enabled_extensions().size()); |
7158 EXPECT_EQ(0u, registry()->disabled_extensions().size()); | 7158 EXPECT_EQ(0u, registry()->disabled_extensions().size()); |
7159 EXPECT_EQ(0u, registry()->terminated_extensions().size()); | 7159 EXPECT_EQ(0u, registry()->terminated_extensions().size()); |
7160 EXPECT_EQ(0u, registry()->blacklisted_extensions().size()); | 7160 EXPECT_EQ(0u, registry()->blacklisted_extensions().size()); |
7161 } | 7161 } |
OLD | NEW |