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

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 (rebase) 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 20
21 #if defined(OS_MACOSX)
22 namespace ui {
tapted 2017/04/19 03:31:07 nit: sort namespaces ("ui" after "base") edit: ac
varkha 2017/04/19 08:34:17 Done.
23 namespace test {
24 class ScopedFakeFullKeyboardAccess;
25 } // namespace test
26 } // namespace ui
27 #endif // defined(OS_MACOSX)
28
21 namespace base { 29 namespace base {
22 30
23 class CommandLine; 31 class CommandLine;
24 32
25 #if defined(OS_MACOSX) 33 #if defined(OS_MACOSX)
26 namespace mac { 34 namespace mac {
27 class ScopedNSAutoreleasePool; 35 class ScopedNSAutoreleasePool;
28 } // namespace mac 36 } // namespace mac
29 #endif // defined(OS_MACOSX) 37 #endif // defined(OS_MACOSX)
30 38
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 // True if the accessibility test should run for a particular test case. 265 // True if the accessibility test should run for a particular test case.
258 // This is reset for every test case. 266 // This is reset for every test case.
259 bool run_accessibility_checks_for_test_case_; 267 bool run_accessibility_checks_for_test_case_;
260 268
261 // We use hardcoded quota settings to have a consistent testing environment. 269 // We use hardcoded quota settings to have a consistent testing environment.
262 storage::QuotaSettings quota_settings_; 270 storage::QuotaSettings quota_settings_;
263 271
264 #if defined(OS_MACOSX) 272 #if defined(OS_MACOSX)
265 base::mac::ScopedNSAutoreleasePool* autorelease_pool_; 273 base::mac::ScopedNSAutoreleasePool* autorelease_pool_;
266 std::unique_ptr<ScopedBundleSwizzlerMac> bundle_swizzler_; 274 std::unique_ptr<ScopedBundleSwizzlerMac> bundle_swizzler_;
275
276 // Enable fake full keyboard access by default, so that tests don't depend on
277 // system setting of the test machine. Also, this helps to make tests on Mac
278 // more consistent with other platforms, where most views are focusable by
279 // default.
280 std::unique_ptr<ui::test::ScopedFakeFullKeyboardAccess>
281 faked_full_keyboard_access_;
267 #endif // OS_MACOSX 282 #endif // OS_MACOSX
268 283
269 #if defined(OS_WIN) 284 #if defined(OS_WIN)
270 std::unique_ptr<base::win::ScopedCOMInitializer> com_initializer_; 285 std::unique_ptr<base::win::ScopedCOMInitializer> com_initializer_;
271 #endif 286 #endif
272 }; 287 };
273 288
274 #endif // CHROME_TEST_BASE_IN_PROCESS_BROWSER_TEST_H_ 289 #endif // CHROME_TEST_BASE_IN_PROCESS_BROWSER_TEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698