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

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

Issue 1548153002: Switch to standard integer types in chrome/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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/base/ui_test_utils.cc ('k') | chrome/test/base/view_event_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 CHROME_TEST_BASE_VIEW_EVENT_TEST_BASE_H_ 5 #ifndef CHROME_TEST_BASE_VIEW_EVENT_TEST_BASE_H_
6 #define CHROME_TEST_BASE_VIEW_EVENT_TEST_BASE_H_ 6 #define CHROME_TEST_BASE_VIEW_EVENT_TEST_BASE_H_
7 7
8 // We only want to use ViewEventTestBase in test targets which properly 8 // We only want to use ViewEventTestBase in test targets which properly
9 // isolate each test case by running each test in a separate process. 9 // isolate each test case by running each test in a separate process.
10 // This way if a test hangs the test launcher can reliably terminate it. 10 // This way if a test hangs the test launcher can reliably terminate it.
11 #if defined(HAS_OUT_OF_PROC_TEST_RUNNER) 11 #if defined(HAS_OUT_OF_PROC_TEST_RUNNER)
12 12
13 #include "base/bind.h" 13 #include "base/bind.h"
14 #include "base/callback.h" 14 #include "base/callback.h"
15 #include "base/compiler_specific.h" 15 #include "base/compiler_specific.h"
16 #include "base/macros.h"
16 #include "base/message_loop/message_loop.h" 17 #include "base/message_loop/message_loop.h"
17 #include "base/run_loop.h" 18 #include "base/run_loop.h"
18 #include "base/threading/thread.h" 19 #include "base/threading/thread.h"
20 #include "build/build_config.h"
19 #include "content/public/test/test_browser_thread_bundle.h" 21 #include "content/public/test/test_browser_thread_bundle.h"
20 #include "testing/gtest/include/gtest/gtest.h" 22 #include "testing/gtest/include/gtest/gtest.h"
21 #include "ui/views/test/test_views_delegate.h" 23 #include "ui/views/test/test_views_delegate.h"
22 #include "ui/views/widget/widget_delegate.h" 24 #include "ui/views/widget/widget_delegate.h"
23 25
24 #if defined(OS_WIN) 26 #if defined(OS_WIN)
25 #include "ui/base/win/scoped_ole_initializer.h" 27 #include "ui/base/win/scoped_ole_initializer.h"
26 #endif 28 #endif
27 29
28 namespace gfx { 30 namespace gfx {
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 // Convenience macro for defining a ViewEventTestBase. See class description 161 // Convenience macro for defining a ViewEventTestBase. See class description
160 // of ViewEventTestBase for details. 162 // of ViewEventTestBase for details.
161 #define VIEW_TEST(test_class, name) \ 163 #define VIEW_TEST(test_class, name) \
162 TEST_F(test_class, name) {\ 164 TEST_F(test_class, name) {\
163 StartMessageLoopAndRunTest();\ 165 StartMessageLoopAndRunTest();\
164 } 166 }
165 167
166 #endif // defined(HAS_OUT_OF_PROC_TEST_RUNNER) 168 #endif // defined(HAS_OUT_OF_PROC_TEST_RUNNER)
167 169
168 #endif // CHROME_TEST_BASE_VIEW_EVENT_TEST_BASE_H_ 170 #endif // CHROME_TEST_BASE_VIEW_EVENT_TEST_BASE_H_
OLDNEW
« no previous file with comments | « chrome/test/base/ui_test_utils.cc ('k') | chrome/test/base/view_event_test_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698