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

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

Issue 1782053004: Change how the quota system computes the total poolsize for temporary storage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 3 years, 10 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/test/DEPS ('k') | chrome/test/base/in_process_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 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"
11 #include "base/files/scoped_temp_dir.h" 11 #include "base/files/scoped_temp_dir.h"
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "build/build_config.h" 13 #include "build/build_config.h"
14 #include "content/public/browser/web_contents.h" 14 #include "content/public/browser/web_contents.h"
15 #include "content/public/test/browser_test.h" 15 #include "content/public/test/browser_test.h"
16 #include "content/public/test/browser_test_base.h" 16 #include "content/public/test/browser_test_base.h"
17 #include "storage/browser/quota/quota_settings.h"
17 #include "testing/gtest/include/gtest/gtest.h" 18 #include "testing/gtest/include/gtest/gtest.h"
18 #include "ui/base/page_transition_types.h" 19 #include "ui/base/page_transition_types.h"
19 20
20 namespace base { 21 namespace base {
21 22
22 class CommandLine; 23 class CommandLine;
23 24
24 #if defined(OS_MACOSX) 25 #if defined(OS_MACOSX)
25 namespace mac { 26 namespace mac {
26 class ScopedNSAutoreleasePool; 27 class ScopedNSAutoreleasePool;
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 // True if we should exit the tests after the last browser instance closes. 254 // True if we should exit the tests after the last browser instance closes.
254 bool exit_when_last_browser_closes_; 255 bool exit_when_last_browser_closes_;
255 256
256 // True if the about:blank tab should be opened when the browser is launched. 257 // True if the about:blank tab should be opened when the browser is launched.
257 bool open_about_blank_on_browser_launch_; 258 bool open_about_blank_on_browser_launch_;
258 259
259 // True if the accessibility test should run for a particular test case. 260 // True if the accessibility test should run for a particular test case.
260 // This is reset for every test case. 261 // This is reset for every test case.
261 bool run_accessibility_checks_for_test_case_; 262 bool run_accessibility_checks_for_test_case_;
262 263
264 // We use hardcoded quota settings to have a consistent testing environment.
265 storage::QuotaSettings quota_settings_;
266
263 #if defined(OS_MACOSX) 267 #if defined(OS_MACOSX)
264 base::mac::ScopedNSAutoreleasePool* autorelease_pool_; 268 base::mac::ScopedNSAutoreleasePool* autorelease_pool_;
265 std::unique_ptr<ScopedBundleSwizzlerMac> bundle_swizzler_; 269 std::unique_ptr<ScopedBundleSwizzlerMac> bundle_swizzler_;
266 #endif // OS_MACOSX 270 #endif // OS_MACOSX
267 271
268 #if defined(OS_WIN) 272 #if defined(OS_WIN)
269 std::unique_ptr<base::win::ScopedCOMInitializer> com_initializer_; 273 std::unique_ptr<base::win::ScopedCOMInitializer> com_initializer_;
270 #endif 274 #endif
271 }; 275 };
272 276
273 #endif // CHROME_TEST_BASE_IN_PROCESS_BROWSER_TEST_H_ 277 #endif // CHROME_TEST_BASE_IN_PROCESS_BROWSER_TEST_H_
OLDNEW
« no previous file with comments | « chrome/test/DEPS ('k') | chrome/test/base/in_process_browser_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698