OLD | NEW |
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 CHROME_FRAME_TEST_CHROME_FRAME_TEST_UTILS_H_ | 5 #ifndef CHROME_FRAME_TEST_CHROME_FRAME_TEST_UTILS_H_ |
6 #define CHROME_FRAME_TEST_CHROME_FRAME_TEST_UTILS_H_ | 6 #define CHROME_FRAME_TEST_CHROME_FRAME_TEST_UTILS_H_ |
7 | 7 |
8 #include <windows.h> | 8 #include <windows.h> |
9 | 9 |
10 #include <atlbase.h> | 10 #include <atlbase.h> |
11 #include <atlwin.h> | 11 #include <atlwin.h> |
12 | 12 |
13 #include <string> | 13 #include <string> |
14 | 14 |
15 #include "base/basictypes.h" | 15 #include "base/basictypes.h" |
16 #include "base/compiler_specific.h" | 16 #include "base/compiler_specific.h" |
17 #include "base/memory/scoped_ptr.h" | 17 #include "base/memory/scoped_ptr.h" |
18 #include "base/message_loop.h" | 18 #include "base/message_loop.h" |
19 #include "base/process_util.h" | 19 #include "base/process_util.h" |
20 #include "base/test/test_reg_util_win.h" | 20 #include "base/test/test_reg_util_win.h" |
21 #include "base/win/registry.h" | 21 #include "base/win/registry.h" |
22 #include "base/win/scoped_comptr.h" | 22 #include "base/win/scoped_comptr.h" |
23 #include "chrome_frame/chrome_tab.h" | 23 |
24 #include "chrome_frame/test/simulate_input.h" | 24 #include "chrome_frame/test/simulate_input.h" |
25 #include "chrome_frame/test_utils.h" | 25 #include "chrome_frame/test_utils.h" |
26 #include "chrome_frame/utils.h" | 26 #include "chrome_frame/utils.h" |
27 | 27 |
| 28 // Include without path to make GYP build see it. |
| 29 #include "chrome_tab.h" // NOLINT |
| 30 |
28 #include "gtest/gtest.h" | 31 #include "gtest/gtest.h" |
29 | 32 |
30 // Needed for CreateFunctor. | 33 // Needed for CreateFunctor. |
31 #define GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING | 34 #define GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING |
32 #include "testing/gmock_mutant.h" | 35 #include "testing/gmock_mutant.h" |
33 | 36 |
34 interface IWebBrowser2; | 37 interface IWebBrowser2; |
35 | 38 |
36 namespace chrome_frame_test { | 39 namespace chrome_frame_test { |
37 | 40 |
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
318 } // namespace chrome_frame_test | 321 } // namespace chrome_frame_test |
319 | 322 |
320 // TODO(tommi): This is a temporary workaround while we're getting our | 323 // TODO(tommi): This is a temporary workaround while we're getting our |
321 // Singleton story straight. Ideally each test should clear up any singletons | 324 // Singleton story straight. Ideally each test should clear up any singletons |
322 // it might have created, but test cases do not implicitly have their own | 325 // it might have created, but test cases do not implicitly have their own |
323 // AtExitManager, so we have this workaround method for tests that depend on | 326 // AtExitManager, so we have this workaround method for tests that depend on |
324 // "fresh" singletons. The implementation is in chrome_frame_unittest_main.cc. | 327 // "fresh" singletons. The implementation is in chrome_frame_unittest_main.cc. |
325 void DeleteAllSingletons(); | 328 void DeleteAllSingletons(); |
326 | 329 |
327 #endif // CHROME_FRAME_TEST_CHROME_FRAME_TEST_UTILS_H_ | 330 #endif // CHROME_FRAME_TEST_CHROME_FRAME_TEST_UTILS_H_ |
OLD | NEW |