| 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 | 23 #include "chrome_frame/chrome_tab.h" |
| 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 | |
| 31 #include "gtest/gtest.h" | 28 #include "gtest/gtest.h" |
| 32 | 29 |
| 33 // Needed for CreateFunctor. | 30 // Needed for CreateFunctor. |
| 34 #define GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING | 31 #define GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING |
| 35 #include "testing/gmock_mutant.h" | 32 #include "testing/gmock_mutant.h" |
| 36 | 33 |
| 37 interface IWebBrowser2; | 34 interface IWebBrowser2; |
| 38 | 35 |
| 39 namespace chrome_frame_test { | 36 namespace chrome_frame_test { |
| 40 | 37 |
| (...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 321 } // namespace chrome_frame_test | 318 } // namespace chrome_frame_test |
| 322 | 319 |
| 323 // TODO(tommi): This is a temporary workaround while we're getting our | 320 // TODO(tommi): This is a temporary workaround while we're getting our |
| 324 // Singleton story straight. Ideally each test should clear up any singletons | 321 // Singleton story straight. Ideally each test should clear up any singletons |
| 325 // it might have created, but test cases do not implicitly have their own | 322 // it might have created, but test cases do not implicitly have their own |
| 326 // AtExitManager, so we have this workaround method for tests that depend on | 323 // AtExitManager, so we have this workaround method for tests that depend on |
| 327 // "fresh" singletons. The implementation is in chrome_frame_unittest_main.cc. | 324 // "fresh" singletons. The implementation is in chrome_frame_unittest_main.cc. |
| 328 void DeleteAllSingletons(); | 325 void DeleteAllSingletons(); |
| 329 | 326 |
| 330 #endif // CHROME_FRAME_TEST_CHROME_FRAME_TEST_UTILS_H_ | 327 #endif // CHROME_FRAME_TEST_CHROME_FRAME_TEST_UTILS_H_ |
| OLD | NEW |