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

Side by Side Diff: chrome/test/base/in_process_browser_test.cc

Issue 8590016: Move the PluginDataRemover class to content, and remove the chrome pieces from it. This class rea... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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
« no previous file with comments | « chrome/test/base/in_process_browser_test.h ('k') | content/browser/plugin_data_remover_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/test/base/in_process_browser_test.h" 5 #include "chrome/test/base/in_process_browser_test.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/debug/stack_trace.h" 9 #include "base/debug/stack_trace.h"
10 #include "base/file_path.h" 10 #include "base/file_path.h"
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 } 184 }
185 } 185 }
186 return test_launcher_utils::OverrideUserDataDir(user_data_dir); 186 return test_launcher_utils::OverrideUserDataDir(user_data_dir);
187 } 187 }
188 188
189 void InProcessBrowserTest::TearDown() { 189 void InProcessBrowserTest::TearDown() {
190 DCHECK(!g_browser_process); 190 DCHECK(!g_browser_process);
191 BrowserTestBase::TearDown(); 191 BrowserTestBase::TearDown();
192 } 192 }
193 193
194 const content::ResourceContext& InProcessBrowserTest::GetResourceContext() {
195 return browser_->profile()->GetResourceContext();
196 }
197
194 void InProcessBrowserTest::AddTabAtIndexToBrowser( 198 void InProcessBrowserTest::AddTabAtIndexToBrowser(
195 Browser* browser, 199 Browser* browser,
196 int index, 200 int index,
197 const GURL& url, 201 const GURL& url,
198 content::PageTransition transition) { 202 content::PageTransition transition) {
199 browser::NavigateParams params(browser, url, transition); 203 browser::NavigateParams params(browser, url, transition);
200 params.tabstrip_index = index; 204 params.tabstrip_index = index;
201 params.disposition = NEW_FOREGROUND_TAB; 205 params.disposition = NEW_FOREGROUND_TAB;
202 browser::Navigate(&params); 206 browser::Navigate(&params);
203 } 207 }
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 if (BrowserList::size() == 0) 324 if (BrowserList::size() == 0)
321 return; 325 return;
322 326
323 // Invoke CloseAllBrowsersAndMayExit on a running message loop. 327 // Invoke CloseAllBrowsersAndMayExit on a running message loop.
324 // CloseAllBrowsersAndMayExit exits the message loop after everything has been 328 // CloseAllBrowsersAndMayExit exits the message loop after everything has been
325 // shut down properly. 329 // shut down properly.
326 MessageLoopForUI::current()->PostTask(FROM_HERE, 330 MessageLoopForUI::current()->PostTask(FROM_HERE,
327 base::Bind(&BrowserList::AttemptExit)); 331 base::Bind(&BrowserList::AttemptExit));
328 ui_test_utils::RunMessageLoop(); 332 ui_test_utils::RunMessageLoop();
329 } 333 }
OLDNEW
« no previous file with comments | « chrome/test/base/in_process_browser_test.h ('k') | content/browser/plugin_data_remover_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698