Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(669)

Side by Side Diff: chrome/browser/extensions/extension_service_unittest.cc

Issue 9019004: Rename PluginService to PluginServiceImpl. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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"
65 #include "content/public/browser/notification_registrar.h" 64 #include "content/public/browser/notification_registrar.h"
66 #include "content/public/browser/notification_service.h" 65 #include "content/public/browser/notification_service.h"
66 #include "content/public/browser/plugin_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"
75 #include "webkit/database/database_tracker.h" 75 #include "webkit/database/database_tracker.h"
76 #include "webkit/database/database_util.h" 76 #include "webkit/database/database_util.h"
77 #include "webkit/plugins/npapi/mock_plugin_list.h" 77 #include "webkit/plugins/npapi/mock_plugin_list.h"
78 #include "webkit/quota/quota_manager.h" 78 #include "webkit/quota/quota_manager.h"
79 79
80 using content::BrowserThread; 80 using content::BrowserThread;
81 using content::PluginService;
81 82
82 namespace keys = extension_manifest_keys; 83 namespace keys = extension_manifest_keys;
83 84
84 namespace { 85 namespace {
85 86
86 // Extension ids used during testing. 87 // Extension ids used during testing.
87 const char* const all_zero = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"; 88 const char* const all_zero = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa";
88 const char* const zero_n_one = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaab"; 89 const char* const zero_n_one = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaab";
89 const char* const good0 = "behllobkkfkfnphdnhnkndlbkcpglgmj"; 90 const char* const good0 = "behllobkkfkfnphdnhnkndlbkcpglgmj";
90 const char* const good1 = "hpiknbiabeeppbpihjehijgoemciehgk"; 91 const char* const good1 = "hpiknbiabeeppbpihjehijgoemciehgk";
(...skipping 4289 matching lines...) Expand 10 before | Expand all | Expand 10 after
4380 ASSERT_FALSE(AddPendingSyncInstall()); 4381 ASSERT_FALSE(AddPendingSyncInstall());
4381 4382
4382 // Wait for the external source to install. 4383 // Wait for the external source to install.
4383 WaitForCrxInstall(crx_path_, INSTALL_NEW); 4384 WaitForCrxInstall(crx_path_, INSTALL_NEW);
4384 ASSERT_TRUE(IsCrxInstalled()); 4385 ASSERT_TRUE(IsCrxInstalled());
4385 4386
4386 // Now that the extension is installed, sync request should fail 4387 // Now that the extension is installed, sync request should fail
4387 // because the extension is already installed. 4388 // because the extension is already installed.
4388 ASSERT_FALSE(AddPendingSyncInstall()); 4389 ASSERT_FALSE(AddPendingSyncInstall());
4389 } 4390 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_nacl_browsertest.cc ('k') | chrome/browser/plugin_prefs_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698