OLD | NEW |
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 CONTENT_PUBLIC_TEST_TEST_UTILS_H_ | 5 #ifndef CONTENT_PUBLIC_TEST_TEST_UTILS_H_ |
6 #define CONTENT_PUBLIC_TEST_TEST_UTILS_H_ | 6 #define CONTENT_PUBLIC_TEST_TEST_UTILS_H_ |
7 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "base/run_loop.h" | 11 #include "base/run_loop.h" |
12 #include "content/public/browser/browser_thread.h" | 12 #include "content/public/browser/browser_thread.h" |
13 #include "content/public/browser/notification_details.h" | 13 #include "content/public/browser/notification_details.h" |
14 #include "content/public/browser/notification_observer.h" | 14 #include "content/public/browser/notification_observer.h" |
15 #include "content/public/browser/notification_registrar.h" | 15 #include "content/public/browser/notification_registrar.h" |
16 #include "content/public/browser/notification_source.h" | 16 #include "content/public/browser/notification_source.h" |
17 #include "googleurl/src/gurl.h" | |
18 | 17 |
19 namespace base { | 18 namespace base { |
20 class Value; | 19 class Value; |
21 } | 20 } |
22 | 21 |
23 // A collection of functions designed for use with unit and browser tests. | 22 // A collection of functions designed for use with unit and browser tests. |
24 | 23 |
25 namespace content { | 24 namespace content { |
26 | 25 |
27 class RenderViewHost; | 26 class RenderViewHost; |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 NotificationSource source_; | 164 NotificationSource source_; |
166 NotificationDetails details_; | 165 NotificationDetails details_; |
167 scoped_refptr<MessageLoopRunner> message_loop_runner_; | 166 scoped_refptr<MessageLoopRunner> message_loop_runner_; |
168 | 167 |
169 DISALLOW_COPY_AND_ASSIGN(WindowedNotificationObserver); | 168 DISALLOW_COPY_AND_ASSIGN(WindowedNotificationObserver); |
170 }; | 169 }; |
171 | 170 |
172 } // namespace content | 171 } // namespace content |
173 | 172 |
174 #endif // CONTENT_PUBLIC_TEST_TEST_UTILS_H_ | 173 #endif // CONTENT_PUBLIC_TEST_TEST_UTILS_H_ |
OLD | NEW |