| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #ifndef CHROME_FRAME_TEST_PERF_CHROME_FRAME_PERFTEST_H_ | 4 #ifndef CHROME_FRAME_TEST_PERF_CHROME_FRAME_PERFTEST_H_ |
| 5 #define CHROME_FRAME_TEST_PERF_CHROME_FRAME_PERFTEST_H_ | 5 #define CHROME_FRAME_TEST_PERF_CHROME_FRAME_PERFTEST_H_ |
| 6 |
| 6 #include <atlbase.h> | 7 #include <atlbase.h> |
| 8 |
| 7 #include "base/perftimer.h" | 9 #include "base/perftimer.h" |
| 10 #include "base/win/atlcheck.h" |
| 8 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
| 9 | 12 |
| 10 class SimpleModule : public CAtlExeModuleT<SimpleModule> { | 13 class SimpleModule : public CAtlExeModuleT<SimpleModule> { |
| 11 public: | 14 public: |
| 12 // The ATL code does not set _pAtlModule to NULL on destruction, and therefore | 15 // The ATL code does not set _pAtlModule to NULL on destruction, and therefore |
| 13 // creating new module (for another test) will ASSERT in constructor. | 16 // creating new module (for another test) will ASSERT in constructor. |
| 14 ~SimpleModule() { | 17 ~SimpleModule() { |
| 15 Term(); | 18 Term(); |
| 16 _pAtlModule = NULL; | 19 _pAtlModule = NULL; |
| 17 } | 20 } |
| 18 }; | 21 }; |
| 19 #endif // CHROME_FRAME_TEST_PERF_CHROME_FRAME_PERFTEST_H_ | 22 #endif // CHROME_FRAME_TEST_PERF_CHROME_FRAME_PERFTEST_H_ |
| OLD | NEW |