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

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

Issue 1393233002: Mac Energy Test Harness/Framework Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Snapshot of scripts for http://crbug.com/391646 Created 5 years, 2 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
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/test/base/browser_with_content_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_TEST_BASE_BROWSER_WITH_CONTENT_TEST_H_
6 #define CHROME_TEST_BASE_BROWSER_WITH_CONTENT_TEST_H_
7
8 #include "base/memory/scoped_ptr.h"
9 #include "content/public/test/browser_test.h"
10 #include "content/public/test/browser_test_base.h"
11
12 namespace base {
13
14 #if defined(OS_MACOSX)
15 namespace mac {
16 class ScopedNSAutoreleasePool;
17 } // namespace mac
18 #endif
19
20 } // namespace base
21
22 #if defined(OS_MACOSX)
23 class ScopedBundleSwizzlerMac;
24 #endif
25
26 class Browser;
27 class TestingProfile;
28
29 // Base class for multiprocess browser based unit tests. BrowserWithContentTest
30 // creates a platform-specific Browser window with a TestingProfile, but uses a
31 // shell ContentBrowserClient, rather than Chrome's.
32 class BrowserWithContentTest : public content::BrowserTestBase {
33 public:
34 BrowserWithContentTest();
35 ~BrowserWithContentTest() override;
36
37 // content::BrowserTestBase:
38 void SetUp() override;
39 void SetUpOnMainThread() override;
40 void TearDownOnMainThread() override;
41 void RunTestOnMainThreadLoop() override;
42
43 private:
44 scoped_ptr<TestingProfile> profile_;
45 Browser* browser_;
46
47 #if defined(OS_MACOSX)
48 base::mac::ScopedNSAutoreleasePool* autorelease_pool_;
49 scoped_ptr<ScopedBundleSwizzlerMac> bundle_swizzler_;
50 #endif // OS_MACOSX
51
52 DISALLOW_COPY_AND_ASSIGN(BrowserWithContentTest);
53 };
54
55 #endif // CHROME_TEST_BASE_BROWSER_WITH_CONTENT_TEST_H_
OLDNEW
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/test/base/browser_with_content_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698