Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(63)

Side by Side Diff: chrome_frame/test/net/fake_external_tab.h

Issue 9150016: Move creation and ownership of ResourceDispatcherHost and PluginService to content. This gives a ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix chromeos ui_tests Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 crash_service_ = handle; 98 crash_service_ = handle;
99 } 99 }
100 100
101 // content::BrowserMainParts implementation. 101 // content::BrowserMainParts implementation.
102 virtual void PreEarlyInitialization() OVERRIDE; 102 virtual void PreEarlyInitialization() OVERRIDE;
103 virtual void PostEarlyInitialization() OVERRIDE {} 103 virtual void PostEarlyInitialization() OVERRIDE {}
104 virtual void PreMainMessageLoopStart() OVERRIDE {} 104 virtual void PreMainMessageLoopStart() OVERRIDE {}
105 virtual void PostMainMessageLoopStart() OVERRIDE {} 105 virtual void PostMainMessageLoopStart() OVERRIDE {}
106 virtual void ToolkitInitialized() OVERRIDE {} 106 virtual void ToolkitInitialized() OVERRIDE {}
107 virtual void PreCreateThreads() OVERRIDE; 107 virtual void PreCreateThreads() OVERRIDE;
108 virtual void PreStartThread(content::BrowserThread::ID identifier) OVERRIDE;
109 virtual void PostStartThread(
110 content::BrowserThread::ID identifier) OVERRIDE;
111 virtual void PreMainMessageLoopRun() OVERRIDE; 108 virtual void PreMainMessageLoopRun() OVERRIDE;
112 virtual bool MainMessageLoopRun(int* result_code) OVERRIDE; 109 virtual bool MainMessageLoopRun(int* result_code) OVERRIDE;
113 virtual void PostMainMessageLoopRun() OVERRIDE; 110 virtual void PostMainMessageLoopRun() OVERRIDE;
114 virtual void PreStopThread(content::BrowserThread::ID identifier) OVERRIDE;
115 virtual void PostStopThread(content::BrowserThread::ID identifier) OVERRIDE;
116 virtual void PostDestroyThreads() OVERRIDE; 111 virtual void PostDestroyThreads() OVERRIDE;
117 112
118 protected: 113 protected:
119 // This is the thread that runs all the UrlRequest tests. 114 // This is the thread that runs all the UrlRequest tests.
120 // Within its context, the Initialize() and Shutdown() routines above 115 // Within its context, the Initialize() and Shutdown() routines above
121 // will be called. 116 // will be called.
122 static DWORD WINAPI RunAllUnittests(void* param); 117 static DWORD WINAPI RunAllUnittests(void* param);
123 118
124 static void TakeDownBrowser(CFUrlRequestUnittestRunner* me); 119 static void TakeDownBrowser(CFUrlRequestUnittestRunner* me);
125 120
126 protected: 121 protected:
127 base::win::ScopedHandle test_thread_; 122 base::win::ScopedHandle test_thread_;
128 base::ProcessHandle crash_service_; 123 base::ProcessHandle crash_service_;
129 DWORD test_thread_id_; 124 DWORD test_thread_id_;
130 125
131 scoped_ptr<test_server::SimpleWebServer> test_http_server_; 126 scoped_ptr<test_server::SimpleWebServer> test_http_server_;
132 test_server::SimpleResponse chrome_frame_html_; 127 test_server::SimpleResponse chrome_frame_html_;
133 128
134 // The fake chrome instance. 129 // The fake chrome instance.
135 scoped_ptr<FakeExternalTab> fake_chrome_; 130 scoped_ptr<FakeExternalTab> fake_chrome_;
136 scoped_ptr<ProcessSingletonSubclass> pss_subclass_; 131 scoped_ptr<ProcessSingletonSubclass> pss_subclass_;
137 ScopedChromeFrameRegistrar registrar_; 132 ScopedChromeFrameRegistrar registrar_;
138 int test_result_; 133 int test_result_;
139 134
140 DISALLOW_COPY_AND_ASSIGN(CFUrlRequestUnittestRunner); 135 DISALLOW_COPY_AND_ASSIGN(CFUrlRequestUnittestRunner);
141 }; 136 };
142 137
143 #endif // CHROME_FRAME_TEST_NET_FAKE_EXTERNAL_TAB_H_ 138 #endif // CHROME_FRAME_TEST_NET_FAKE_EXTERNAL_TAB_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698