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

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

Issue 2808823002: MacViews: Allows the toolkit-views Manage Passwords Dialog to be used (Closed)
Patch Set: MacViews: Allows the toolkit-views Manage Passwords Dialog to be used (comments) Created 3 years, 8 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
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 "storage/browser/quota/quota_settings.h"
18 #include "testing/gtest/include/gtest/gtest.h" 18 #include "testing/gtest/include/gtest/gtest.h"
19 #include "ui/base/page_transition_types.h" 19 #include "ui/base/page_transition_types.h"
20 #include "ui/base/test/scoped_fake_full_keyboard_access.h"
20 21
21 namespace base { 22 namespace base {
22 23
23 class CommandLine; 24 class CommandLine;
24 25
25 #if defined(OS_MACOSX) 26 #if defined(OS_MACOSX)
26 namespace mac { 27 namespace mac {
27 class ScopedNSAutoreleasePool; 28 class ScopedNSAutoreleasePool;
28 } // namespace mac 29 } // namespace mac
29 #endif // defined(OS_MACOSX) 30 #endif // defined(OS_MACOSX)
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 // True if the accessibility test should run for a particular test case. 258 // True if the accessibility test should run for a particular test case.
258 // This is reset for every test case. 259 // This is reset for every test case.
259 bool run_accessibility_checks_for_test_case_; 260 bool run_accessibility_checks_for_test_case_;
260 261
261 // We use hardcoded quota settings to have a consistent testing environment. 262 // We use hardcoded quota settings to have a consistent testing environment.
262 storage::QuotaSettings quota_settings_; 263 storage::QuotaSettings quota_settings_;
263 264
264 #if defined(OS_MACOSX) 265 #if defined(OS_MACOSX)
265 base::mac::ScopedNSAutoreleasePool* autorelease_pool_; 266 base::mac::ScopedNSAutoreleasePool* autorelease_pool_;
266 std::unique_ptr<ScopedBundleSwizzlerMac> bundle_swizzler_; 267 std::unique_ptr<ScopedBundleSwizzlerMac> bundle_swizzler_;
268
269 // Enable fake full keyboard access by default, so that tests don't depend on
270 // system setting of the test machine. Also, this helps to make tests on Mac
271 // more consistent with other platforms, where most views are focusable by
272 // default.
273 ui::test::ScopedFakeFullKeyboardAccess faked_full_keyboard_access_;
267 #endif // OS_MACOSX 274 #endif // OS_MACOSX
268 275
269 #if defined(OS_WIN) 276 #if defined(OS_WIN)
270 std::unique_ptr<base::win::ScopedCOMInitializer> com_initializer_; 277 std::unique_ptr<base::win::ScopedCOMInitializer> com_initializer_;
271 #endif 278 #endif
272 }; 279 };
273 280
274 #endif // CHROME_TEST_BASE_IN_PROCESS_BROWSER_TEST_H_ 281 #endif // CHROME_TEST_BASE_IN_PROCESS_BROWSER_TEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698