| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_NET_FAKE_EXTERNAL_TAB_H_ | 5 #ifndef CHROME_FRAME_TEST_NET_FAKE_EXTERNAL_TAB_H_ |
| 6 #define CHROME_FRAME_TEST_NET_FAKE_EXTERNAL_TAB_H_ | 6 #define CHROME_FRAME_TEST_NET_FAKE_EXTERNAL_TAB_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/file_path.h" | 10 #include "base/file_path.h" |
| 11 #include "base/message_loop.h" | 11 #include "base/message_loop.h" |
| 12 | 12 |
| 13 #include "chrome/app/scoped_ole_initializer.h" | 13 #include "chrome/app/scoped_ole_initializer.h" |
| 14 #include "chrome/browser/browser_process_impl.h" | 14 #include "chrome/browser/browser_process_impl.h" |
| 15 | 15 |
| 16 #include "chrome_frame/test/test_server.h" | 16 #include "chrome_frame/test/test_server.h" |
| 17 #include "chrome_frame/test/net/test_automation_provider.h" | 17 #include "chrome_frame/test/net/test_automation_provider.h" |
| 18 #include "chrome_frame/test/net/process_singleton_subclass.h" | 18 #include "chrome_frame/test/net/process_singleton_subclass.h" |
| 19 | 19 |
| 20 #include "net/base/net_test_suite.h" | 20 #include "net/base/net_test_suite.h" |
| 21 | 21 |
| 22 class ProcessSingleton; | 22 class ProcessSingleton; |
| 23 | 23 |
| 24 class FakeExternalTab { | 24 class FakeExternalTab { |
| 25 public: | 25 public: |
| 26 FakeExternalTab(); | 26 FakeExternalTab(); |
| 27 ~FakeExternalTab(); | 27 ~FakeExternalTab(); |
| 28 | 28 |
| 29 virtual std::wstring GetProfileName(); | 29 virtual std::wstring GetProfileName(); |
| 30 | 30 |
| 31 virtual std::wstring GetProfilePath(); | 31 virtual bool GetProfilePath(FilePath* path); |
| 32 virtual void Initialize(); | 32 virtual void Initialize(); |
| 33 virtual void Shutdown(); | 33 virtual void Shutdown(); |
| 34 | 34 |
| 35 const FilePath& user_data() const { | 35 const FilePath& user_data() const { |
| 36 return user_data_dir_; | 36 return user_data_dir_; |
| 37 } | 37 } |
| 38 | 38 |
| 39 MessageLoopForUI* ui_loop() { | 39 MessageLoopForUI* ui_loop() { |
| 40 return &loop_; | 40 return &loop_; |
| 41 } | 41 } |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 scoped_ptr<test_server::SimpleWebServer> test_http_server_; | 97 scoped_ptr<test_server::SimpleWebServer> test_http_server_; |
| 98 test_server::SimpleResponse chrome_frame_html_; | 98 test_server::SimpleResponse chrome_frame_html_; |
| 99 | 99 |
| 100 // The fake chrome instance. This instance owns the UI message loop | 100 // The fake chrome instance. This instance owns the UI message loop |
| 101 // on the main thread. | 101 // on the main thread. |
| 102 FakeExternalTab fake_chrome_; | 102 FakeExternalTab fake_chrome_; |
| 103 scoped_ptr<ProcessSingletonSubclass> pss_subclass_; | 103 scoped_ptr<ProcessSingletonSubclass> pss_subclass_; |
| 104 }; | 104 }; |
| 105 | 105 |
| 106 #endif // CHROME_FRAME_TEST_NET_FAKE_EXTERNAL_TAB_H_ | 106 #endif // CHROME_FRAME_TEST_NET_FAKE_EXTERNAL_TAB_H_ |
| OLD | NEW |