| 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_TEST_UNIT_CHROME_TEST_SUITE_H_ | 5 #ifndef CHROME_TEST_UNIT_CHROME_TEST_SUITE_H_ |
| 6 #define CHROME_TEST_UNIT_CHROME_TEST_SUITE_H_ | 6 #define CHROME_TEST_UNIT_CHROME_TEST_SUITE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "build/build_config.h" | 11 #include "build/build_config.h" |
| 12 | 12 |
| 13 #include "base/file_util.h" | 13 #include "base/file_util.h" |
| 14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
| 15 #include "base/path_service.h" | 15 #include "base/path_service.h" |
| 16 #include "base/test/test_suite.h" | 16 #include "base/test/test_suite.h" |
| 17 #include "chrome/app/scoped_ole_initializer.h" | 17 #include "chrome/app/scoped_ole_initializer.h" |
| 18 #include "chrome/browser/chrome_content_browser_client.h" |
| 18 #include "chrome/common/chrome_content_client.h" | 19 #include "chrome/common/chrome_content_client.h" |
| 19 #include "testing/gtest/include/gtest/gtest.h" | 20 #include "testing/gtest/include/gtest/gtest.h" |
| 20 #include "net/base/mock_host_resolver.h" | 21 #include "net/base/mock_host_resolver.h" |
| 21 #include "net/base/net_util.h" | 22 #include "net/base/net_util.h" |
| 22 | 23 |
| 23 namespace base { | 24 namespace base { |
| 24 class StatsTable; | 25 class StatsTable; |
| 25 } | 26 } |
| 26 | 27 |
| 27 // In many cases it may be not obvious that a test makes a real DNS lookup. | 28 // In many cases it may be not obvious that a test makes a real DNS lookup. |
| (...skipping 20 matching lines...) Expand all Loading... |
| 48 protected: | 49 protected: |
| 49 virtual void Initialize(); | 50 virtual void Initialize(); |
| 50 virtual void Shutdown(); | 51 virtual void Shutdown(); |
| 51 | 52 |
| 52 void SetBrowserDirectory(const FilePath& browser_dir) { | 53 void SetBrowserDirectory(const FilePath& browser_dir) { |
| 53 browser_dir_ = browser_dir; | 54 browser_dir_ = browser_dir; |
| 54 } | 55 } |
| 55 | 56 |
| 56 // Client for embedding content in Chrome. | 57 // Client for embedding content in Chrome. |
| 57 chrome::ChromeContentClient chrome_content_client_; | 58 chrome::ChromeContentClient chrome_content_client_; |
| 59 chrome::ChromeContentBrowserClient chrome_browser_content_client_; |
| 58 | 60 |
| 59 base::StatsTable* stats_table_; | 61 base::StatsTable* stats_table_; |
| 60 | 62 |
| 61 // The name used for the stats file so it can be cleaned up on posix during | 63 // The name used for the stats file so it can be cleaned up on posix during |
| 62 // test shutdown. | 64 // test shutdown. |
| 63 std::string stats_filename_; | 65 std::string stats_filename_; |
| 64 | 66 |
| 65 // Alternative path to browser binaries. | 67 // Alternative path to browser binaries. |
| 66 FilePath browser_dir_; | 68 FilePath browser_dir_; |
| 67 | 69 |
| 68 ScopedOleInitializer ole_initializer_; | 70 ScopedOleInitializer ole_initializer_; |
| 69 scoped_refptr<LocalHostResolverProc> host_resolver_proc_; | 71 scoped_refptr<LocalHostResolverProc> host_resolver_proc_; |
| 70 net::ScopedDefaultHostResolverProc scoped_host_resolver_proc_; | 72 net::ScopedDefaultHostResolverProc scoped_host_resolver_proc_; |
| 71 }; | 73 }; |
| 72 | 74 |
| 73 #endif // CHROME_TEST_UNIT_CHROME_TEST_SUITE_H_ | 75 #endif // CHROME_TEST_UNIT_CHROME_TEST_SUITE_H_ |
| OLD | NEW |