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

Side by Side Diff: content/public/test/content_browser_test.h

Issue 1232973002: Crash tests when BrowserTestBase::SetUp is not called (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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 | « content/public/test/browser_test_base.cc ('k') | content/public/test/content_browser_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
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 CONTENT_PUBLIC_TEST_CONTENT_BROWSER_TEST_H_ 5 #ifndef CONTENT_PUBLIC_TEST_CONTENT_BROWSER_TEST_H_
6 #define CONTENT_PUBLIC_TEST_CONTENT_BROWSER_TEST_H_ 6 #define CONTENT_PUBLIC_TEST_CONTENT_BROWSER_TEST_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "content/public/test/browser_test.h" 9 #include "content/public/test/browser_test.h"
10 #include "content/public/test/browser_test_base.h" 10 #include "content/public/test/browser_test_base.h"
(...skipping 21 matching lines...) Expand all
32 32
33 // Creates an off-the-record window and loads about:blank. 33 // Creates an off-the-record window and loads about:blank.
34 Shell* CreateOffTheRecordBrowser(); 34 Shell* CreateOffTheRecordBrowser();
35 35
36 // Returns the window for the test. 36 // Returns the window for the test.
37 Shell* shell() const { return shell_; } 37 Shell* shell() const { return shell_; }
38 38
39 private: 39 private:
40 Shell* shell_; 40 Shell* shell_;
41 41
42 bool setup_called_;
43
44 #if defined(OS_ANDROID) 42 #if defined(OS_ANDROID)
45 // For all other platforms, this is done automatically when calling into 43 // For all other platforms, this is done automatically when calling into
46 // ContentMain. For Android we set things up manually. 44 // ContentMain. For Android we set things up manually.
47 scoped_ptr<ShellMainDelegate> shell_main_delegate_; 45 scoped_ptr<ShellMainDelegate> shell_main_delegate_;
48 #endif 46 #endif
49 }; 47 };
50 48
51 } // namespace content 49 } // namespace content
52 50
53 #endif // CONTENT_PUBLIC_TEST_CONTENT_BROWSER_TEST_H_ 51 #endif // CONTENT_PUBLIC_TEST_CONTENT_BROWSER_TEST_H_
OLDNEW
« no previous file with comments | « content/public/test/browser_test_base.cc ('k') | content/public/test/content_browser_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698