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

Side by Side Diff: content/browser/plugin_service_impl_browsertest.cc

Issue 9371025: Move resource_context.h to content/public/browser. Remove the workaround in its destructor since ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 8 years, 10 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 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_impl.h" 5 #include "content/browser/plugin_service_impl.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/path_service.h" 10 #include "base/path_service.h"
11 #include "chrome/browser/ui/browser.h" 11 #include "chrome/browser/ui/browser.h"
12 #include "chrome/test/base/in_process_browser_test.h" 12 #include "chrome/test/base/in_process_browser_test.h"
13 #include "chrome/test/base/testing_profile.h" 13 #include "chrome/test/base/testing_profile.h"
14 #include "chrome/test/base/ui_test_utils.h" 14 #include "chrome/test/base/ui_test_utils.h"
15 #include "content/browser/resource_context.h" 15 #include "content/public/browser/resource_context.h"
16 #include "content/public/common/content_switches.h" 16 #include "content/public/common/content_switches.h"
17 #include "content/test/test_browser_thread.h" 17 #include "content/test/test_browser_thread.h"
18 #include "testing/gmock/include/gmock/gmock.h" 18 #include "testing/gmock/include/gmock/gmock.h"
19 #include "webkit/plugins/npapi/plugin_list.h" 19 #include "webkit/plugins/npapi/plugin_list.h"
20 20
21 using content::BrowserThread; 21 using content::BrowserThread;
22 22
23 namespace { 23 namespace {
24 24
25 const char kNPAPITestPluginMimeType[] = "application/vnd.npapi-test"; 25 const char kNPAPITestPluginMimeType[] = "application/vnd.npapi-test";
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 BrowserThread::IO, FROM_HERE, 301 BrowserThread::IO, FROM_HERE,
302 base::Bind(&OpenChannel, &mock_client)); 302 base::Bind(&OpenChannel, &mock_client));
303 ui_test_utils::RunMessageLoop(); 303 ui_test_utils::RunMessageLoop();
304 EXPECT_TRUE(mock_client.get_resource_context_called()); 304 EXPECT_TRUE(mock_client.get_resource_context_called());
305 EXPECT_TRUE(mock_client.set_plugin_info_called()); 305 EXPECT_TRUE(mock_client.set_plugin_info_called());
306 EXPECT_TRUE(mock_client.on_found_plugin_process_host_called()); 306 EXPECT_TRUE(mock_client.on_found_plugin_process_host_called());
307 EXPECT_TRUE(mock_client.on_sent_plugin_channel_request_called()); 307 EXPECT_TRUE(mock_client.on_sent_plugin_channel_request_called());
308 } 308 }
309 309
310 } // namespace 310 } // namespace
OLDNEW
« no previous file with comments | « content/browser/plugin_service_impl.cc ('k') | content/browser/renderer_host/async_resource_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698