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

Side by Side Diff: chrome/browser/plugin_prefs_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/plugin_prefs.h" 5 #include "chrome/browser/plugin_prefs.h"
6 6
7 #include "base/at_exit.h" 7 #include "base/at_exit.h"
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
11 #include "chrome/test/base/testing_browser_process.h" 11 #include "chrome/test/base/testing_browser_process.h"
12 #include "chrome/test/base/testing_profile.h" 12 #include "chrome/test/base/testing_profile.h"
13 #include "chrome/test/base/testing_profile_manager.h" 13 #include "chrome/test/base/testing_profile_manager.h"
14 #include "content/browser/plugin_service.h" 14 #include "content/browser/plugin_service_impl.h"
15 #include "content/test/test_browser_thread.h" 15 #include "content/test/test_browser_thread.h"
16 #include "testing/gtest/include/gtest/gtest.h" 16 #include "testing/gtest/include/gtest/gtest.h"
17 #include "webkit/plugins/npapi/mock_plugin_list.cc" 17 #include "webkit/plugins/npapi/mock_plugin_list.cc"
18 #include "webkit/plugins/webplugininfo.h" 18 #include "webkit/plugins/webplugininfo.h"
19 19
20 using content::BrowserThread; 20 using content::BrowserThread;
21 21
22 class PluginPrefsTest : public ::testing::Test { 22 class PluginPrefsTest : public ::testing::Test {
23 public: 23 public:
24 virtual void SetUp() OVERRIDE { 24 virtual void SetUp() OVERRIDE {
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 TestingProfile* profile_2 = 173 TestingProfile* profile_2 =
174 profile_manager.CreateTestingProfile("Profile 2"); 174 profile_manager.CreateTestingProfile("Profile 2");
175 PluginPrefs* plugin_prefs_2 = PluginPrefs::GetForTestingProfile(profile_2); 175 PluginPrefs* plugin_prefs_2 = PluginPrefs::GetForTestingProfile(profile_2);
176 ASSERT_TRUE(plugin_prefs); 176 ASSERT_TRUE(plugin_prefs);
177 plugin_prefs_2->SetPluginListForTesting(&plugin_list); 177 plugin_prefs_2->SetPluginListForTesting(&plugin_list);
178 EXPECT_FALSE(plugin_prefs_2->IsPluginEnabled(plugin)); 178 EXPECT_FALSE(plugin_prefs_2->IsPluginEnabled(plugin));
179 179
180 profile_manager.DeleteTestingProfile("Profile 1"); 180 profile_manager.DeleteTestingProfile("Profile 1");
181 profile_manager.DeleteTestingProfile("Profile 2"); 181 profile_manager.DeleteTestingProfile("Profile 2");
182 } 182 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698