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

Unified Diff: content/browser/plugin_loader_posix_unittest.cc

Issue 11235068: Move the remaning files in content\common to the content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 2 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/plugin_loader_posix.cc ('k') | content/browser/plugin_process_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/plugin_loader_posix_unittest.cc
===================================================================
--- content/browser/plugin_loader_posix_unittest.cc (revision 163632)
+++ content/browser/plugin_loader_posix_unittest.cc (working copy)
@@ -15,8 +15,7 @@
#include "testing/gtest/include/gtest/gtest.h"
#include "webkit/plugins/webplugininfo.h"
-using content::BrowserThread;
-using content::BrowserThreadImpl;
+namespace content {
class MockPluginLoaderPosix : public PluginLoaderPosix {
public:
@@ -107,7 +106,7 @@
TEST_F(PluginLoaderPosixTest, QueueRequests) {
int did_callback = 0;
- content::PluginService::GetPluginsCallback callback =
+ PluginService::GetPluginsCallback callback =
base::Bind(&VerifyCallback, base::Unretained(&did_callback));
EXPECT_EQ(0u, plugin_loader()->number_of_pending_callbacks());
@@ -141,7 +140,7 @@
TEST_F(PluginLoaderPosixTest, ThreeSuccessfulLoads) {
int did_callback = 0;
- content::PluginService::GetPluginsCallback callback =
+ PluginService::GetPluginsCallback callback =
base::Bind(&VerifyCallback, base::Unretained(&did_callback));
plugin_loader()->LoadPlugins(message_loop()->message_loop_proxy(), callback);
@@ -182,7 +181,7 @@
TEST_F(PluginLoaderPosixTest, ThreeSuccessfulLoadsThenCrash) {
int did_callback = 0;
- content::PluginService::GetPluginsCallback callback =
+ PluginService::GetPluginsCallback callback =
base::Bind(&VerifyCallback, base::Unretained(&did_callback));
plugin_loader()->LoadPlugins(message_loop()->message_loop_proxy(), callback);
@@ -225,7 +224,7 @@
TEST_F(PluginLoaderPosixTest, TwoFailures) {
int did_callback = 0;
- content::PluginService::GetPluginsCallback callback =
+ PluginService::GetPluginsCallback callback =
base::Bind(&VerifyCallback, base::Unretained(&did_callback));
plugin_loader()->LoadPlugins(message_loop()->message_loop_proxy(), callback);
@@ -264,7 +263,7 @@
TEST_F(PluginLoaderPosixTest, CrashedProcess) {
int did_callback = 0;
- content::PluginService::GetPluginsCallback callback =
+ PluginService::GetPluginsCallback callback =
base::Bind(&VerifyCallback, base::Unretained(&did_callback));
plugin_loader()->LoadPlugins(message_loop()->message_loop_proxy(), callback);
@@ -297,7 +296,7 @@
TEST_F(PluginLoaderPosixTest, InternalPlugin) {
int did_callback = 0;
- content::PluginService::GetPluginsCallback callback =
+ PluginService::GetPluginsCallback callback =
base::Bind(&VerifyCallback, base::Unretained(&did_callback));
plugin_loader()->LoadPlugins(message_loop()->message_loop_proxy(), callback);
@@ -346,7 +345,7 @@
TEST_F(PluginLoaderPosixTest, AllCrashed) {
int did_callback = 0;
- content::PluginService::GetPluginsCallback callback =
+ PluginService::GetPluginsCallback callback =
base::Bind(&VerifyCallback, base::Unretained(&did_callback));
plugin_loader()->LoadPlugins(message_loop()->message_loop_proxy(), callback);
@@ -376,3 +375,5 @@
EXPECT_EQ(0u, plugin_loader()->loaded_plugins().size());
}
+
+} // namespace content
« no previous file with comments | « content/browser/plugin_loader_posix.cc ('k') | content/browser/plugin_process_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698