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

Side by Side Diff: content/public/test/browser_test_base.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 | « no previous file | content/public/test/browser_test_base.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_BROWSER_TEST_BASE_H_ 5 #ifndef CONTENT_PUBLIC_TEST_BROWSER_TEST_BASE_H_
6 #define CONTENT_PUBLIC_TEST_BROWSER_TEST_BASE_H_ 6 #define CONTENT_PUBLIC_TEST_BROWSER_TEST_BASE_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/threading/thread.h" 10 #include "base/threading/thread.h"
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 // Expected exit code (default is 0). 145 // Expected exit code (default is 0).
146 int expected_exit_code_; 146 int expected_exit_code_;
147 147
148 // When true, the compositor will produce pixel output that can be read back 148 // When true, the compositor will produce pixel output that can be read back
149 // for pixel tests. 149 // for pixel tests.
150 bool enable_pixel_output_; 150 bool enable_pixel_output_;
151 151
152 // When true, do compositing with the software backend instead of using GL. 152 // When true, do compositing with the software backend instead of using GL.
153 bool use_software_compositing_; 153 bool use_software_compositing_;
154 154
155 // Whether SetUp was called. This value is checked in the destructor of this
156 // class to ensure that SetUp was called. If it's not called, the test will
157 // not run and report a false positive result.
158 bool set_up_called_;
159
155 #if defined(OS_POSIX) 160 #if defined(OS_POSIX)
156 bool handle_sigterm_; 161 bool handle_sigterm_;
157 #endif 162 #endif
158 }; 163 };
159 164
160 } // namespace content 165 } // namespace content
161 166
162 #endif // CONTENT_PUBLIC_TEST_BROWSER_TEST_BASE_H_ 167 #endif // CONTENT_PUBLIC_TEST_BROWSER_TEST_BASE_H_
OLDNEW
« no previous file with comments | « no previous file | content/public/test/browser_test_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698