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

Side by Side Diff: chrome/browser/ui/tab_contents/test_tab_contents_wrapper.cc

Issue 8883001: Makes a couple of tests properly delete aura state. These tests don't (Closed) Base URL: svn://svn.chromium.org/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
« no previous file with comments | « no previous file | chrome/test/base/chrome_render_view_host_test_harness.cc » ('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/browser/ui/tab_contents/test_tab_contents_wrapper.h" 5 #include "chrome/browser/ui/tab_contents/test_tab_contents_wrapper.h"
6 6
7 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" 7 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
8 #include "chrome/test/base/testing_profile.h" 8 #include "chrome/test/base/testing_profile.h"
9 #include "content/browser/tab_contents/test_tab_contents.h" 9 #include "content/browser/tab_contents/test_tab_contents.h"
10 10
(...skipping 26 matching lines...) Expand all
37 void TabContentsWrapperTestHarness::TearDown() { 37 void TabContentsWrapperTestHarness::TearDown() {
38 contents_wrapper_.reset(); 38 contents_wrapper_.reset();
39 39
40 // Make sure that we flush any messages related to TabContents destruction 40 // Make sure that we flush any messages related to TabContents destruction
41 // before we destroy the browser context. 41 // before we destroy the browser context.
42 MessageLoop::current()->RunAllPending(); 42 MessageLoop::current()->RunAllPending();
43 43
44 // Release the browser context on the UI thread. 44 // Release the browser context on the UI thread.
45 message_loop_.DeleteSoon(FROM_HERE, browser_context_.release()); 45 message_loop_.DeleteSoon(FROM_HERE, browser_context_.release());
46 message_loop_.RunAllPending(); 46 message_loop_.RunAllPending();
47
48 ChromeRenderViewHostTestHarness::TearDown();
47 } 49 }
OLDNEW
« no previous file with comments | « no previous file | chrome/test/base/chrome_render_view_host_test_harness.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698