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

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

Issue 2530053003: chrome: Cleanup class/struct forward declarations (Closed)
Patch Set: Rebase + address comment Created 4 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef CHROME_TEST_BASE_IN_PROCESS_BROWSER_TEST_H_ 5 #ifndef CHROME_TEST_BASE_IN_PROCESS_BROWSER_TEST_H_
6 #define CHROME_TEST_BASE_IN_PROCESS_BROWSER_TEST_H_ 6 #define CHROME_TEST_BASE_IN_PROCESS_BROWSER_TEST_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 22 matching lines...) Expand all
33 } 33 }
34 #endif // defined(OS_WIN) 34 #endif // defined(OS_WIN)
35 } // namespace base 35 } // namespace base
36 36
37 class Browser; 37 class Browser;
38 class Profile; 38 class Profile;
39 #if defined(OS_MACOSX) 39 #if defined(OS_MACOSX)
40 class ScopedBundleSwizzlerMac; 40 class ScopedBundleSwizzlerMac;
41 #endif // defined(OS_MACOSX) 41 #endif // defined(OS_MACOSX)
42 42
43 namespace content {
44 class ContentRendererClient;
45 }
46
47 // Base class for tests wanting to bring up a browser in the unit test process. 43 // Base class for tests wanting to bring up a browser in the unit test process.
48 // Writing tests with InProcessBrowserTest is slightly different than that of 44 // Writing tests with InProcessBrowserTest is slightly different than that of
49 // other tests. This is necessitated by InProcessBrowserTest running a message 45 // other tests. This is necessitated by InProcessBrowserTest running a message
50 // loop. To use InProcessBrowserTest do the following: 46 // loop. To use InProcessBrowserTest do the following:
51 // . Use the macro IN_PROC_BROWSER_TEST_F to define your test. 47 // . Use the macro IN_PROC_BROWSER_TEST_F to define your test.
52 // . Your test method is invoked on the ui thread. If you need to block until 48 // . Your test method is invoked on the ui thread. If you need to block until
53 // state changes you'll need to run the message loop from your test method. 49 // state changes you'll need to run the message loop from your test method.
54 // For example, if you need to wait till a find bar has completely been shown 50 // For example, if you need to wait till a find bar has completely been shown
55 // you'll need to invoke content::RunMessageLoop. When the message bar is 51 // you'll need to invoke content::RunMessageLoop. When the message bar is
56 // shown, invoke MessageLoop::current()->QuitWhenIdle() to return control back 52 // shown, invoke MessageLoop::current()->QuitWhenIdle() to return control back
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 base::mac::ScopedNSAutoreleasePool* autorelease_pool_; 264 base::mac::ScopedNSAutoreleasePool* autorelease_pool_;
269 std::unique_ptr<ScopedBundleSwizzlerMac> bundle_swizzler_; 265 std::unique_ptr<ScopedBundleSwizzlerMac> bundle_swizzler_;
270 #endif // OS_MACOSX 266 #endif // OS_MACOSX
271 267
272 #if defined(OS_WIN) 268 #if defined(OS_WIN)
273 std::unique_ptr<base::win::ScopedCOMInitializer> com_initializer_; 269 std::unique_ptr<base::win::ScopedCOMInitializer> com_initializer_;
274 #endif 270 #endif
275 }; 271 };
276 272
277 #endif // CHROME_TEST_BASE_IN_PROCESS_BROWSER_TEST_H_ 273 #endif // CHROME_TEST_BASE_IN_PROCESS_BROWSER_TEST_H_
OLDNEW
« no previous file with comments | « chrome/test/base/chrome_render_view_host_test_harness.h ('k') | chrome/test/base/testing_browser_process.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698