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

Side by Side Diff: content/browser/plugin_service_impl_browsertest.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 "content/browser/plugin_service.h"
6
7 #include "base/bind.h" 5 #include "base/bind.h"
8 #include "base/command_line.h" 6 #include "base/command_line.h"
9 #include "base/path_service.h" 7 #include "base/path_service.h"
10 #include "chrome/browser/ui/browser.h" 8 #include "chrome/browser/ui/browser.h"
11 #include "chrome/test/base/in_process_browser_test.h" 9 #include "chrome/test/base/in_process_browser_test.h"
12 #include "chrome/test/base/testing_profile.h" 10 #include "chrome/test/base/testing_profile.h"
13 #include "chrome/test/base/ui_test_utils.h" 11 #include "chrome/test/base/ui_test_utils.h"
12 #include "content/browser/plugin_service_impl.h"
Nico 2011/12/21 03:38:39 Nit: the style guide says that the header for a te
jam 2011/12/21 04:56:50 oh, that's new to me. I just checked and it got up
14 #include "content/browser/resource_context.h" 13 #include "content/browser/resource_context.h"
15 #include "content/public/common/content_switches.h" 14 #include "content/public/common/content_switches.h"
16 #include "content/test/test_browser_thread.h" 15 #include "content/test/test_browser_thread.h"
17 #include "testing/gmock/include/gmock/gmock.h" 16 #include "testing/gmock/include/gmock/gmock.h"
18 #include "webkit/plugins/npapi/plugin_list.h" 17 #include "webkit/plugins/npapi/plugin_list.h"
19 18
20 using content::BrowserThread; 19 using content::BrowserThread;
21 20
22 namespace { 21 namespace {
23 22
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 BrowserThread::IO, FROM_HERE, 301 BrowserThread::IO, FROM_HERE,
303 base::Bind(&OpenChannel, &mock_client)); 302 base::Bind(&OpenChannel, &mock_client));
304 ui_test_utils::RunMessageLoop(); 303 ui_test_utils::RunMessageLoop();
305 EXPECT_TRUE(mock_client.get_resource_context_called()); 304 EXPECT_TRUE(mock_client.get_resource_context_called());
306 EXPECT_TRUE(mock_client.set_plugin_info_called()); 305 EXPECT_TRUE(mock_client.set_plugin_info_called());
307 EXPECT_TRUE(mock_client.on_found_plugin_process_host_called()); 306 EXPECT_TRUE(mock_client.on_found_plugin_process_host_called());
308 EXPECT_TRUE(mock_client.on_sent_plugin_channel_request_called()); 307 EXPECT_TRUE(mock_client.on_sent_plugin_channel_request_called());
309 } 308 }
310 309
311 } // namespace 310 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698