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

Side by Side Diff: base/test/thread_test_helper.h

Issue 10735044: Remove #pragma once. Just from base/ for now. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | Annotate | Revision Log
« no previous file with comments | « base/test/test_suite.h ('k') | base/test/trace_event_analyzer.h » ('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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 BASE_TEST_THREAD_TEST_HELPER_H_ 5 #ifndef BASE_TEST_THREAD_TEST_HELPER_H_
6 #define BASE_TEST_THREAD_TEST_HELPER_H_ 6 #define BASE_TEST_THREAD_TEST_HELPER_H_
7 #pragma once
8 7
9 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
10 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
11 #include "base/message_loop_proxy.h" 10 #include "base/message_loop_proxy.h"
12 #include "base/synchronization/waitable_event.h" 11 #include "base/synchronization/waitable_event.h"
13 12
14 namespace base { 13 namespace base {
15 14
16 // Helper class that executes code on a given thread while blocking on the 15 // Helper class that executes code on a given thread while blocking on the
17 // invoking thread. To use, derive from this class and overwrite RunTest. An 16 // invoking thread. To use, derive from this class and overwrite RunTest. An
(...skipping 22 matching lines...) Expand all
40 bool test_result_; 39 bool test_result_;
41 scoped_refptr<MessageLoopProxy> target_thread_; 40 scoped_refptr<MessageLoopProxy> target_thread_;
42 WaitableEvent done_event_; 41 WaitableEvent done_event_;
43 42
44 DISALLOW_COPY_AND_ASSIGN(ThreadTestHelper); 43 DISALLOW_COPY_AND_ASSIGN(ThreadTestHelper);
45 }; 44 };
46 45
47 } // namespace base 46 } // namespace base
48 47
49 #endif // BASE_TEST_THREAD_TEST_HELPER_H_ 48 #endif // BASE_TEST_THREAD_TEST_HELPER_H_
OLDNEW
« no previous file with comments | « base/test/test_suite.h ('k') | base/test/trace_event_analyzer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698