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

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

Issue 6126002: Remove base/scoped_handle_win.h stub and fix up all callers to use the new location and namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review Created 9 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) 2009 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 8
8 #include <string> 9 #include <string>
9 10
10 #include "base/file_path.h" 11 #include "base/file_path.h"
11 #include "base/message_loop.h" 12 #include "base/message_loop.h"
12 13 #include "base/win/scoped_handle.h"
13 #include "chrome/app/scoped_ole_initializer.h" 14 #include "chrome/app/scoped_ole_initializer.h"
14 #include "chrome/browser/browser_process_impl.h" 15 #include "chrome/browser/browser_process_impl.h"
15 #include "chrome/browser/browser_thread.h" 16 #include "chrome/browser/browser_thread.h"
16 #include "chrome_frame/test/test_server.h" 17 #include "chrome_frame/test/test_server.h"
17 #include "chrome_frame/test/net/test_automation_provider.h" 18 #include "chrome_frame/test/net/test_automation_provider.h"
18 #include "chrome_frame/test/net/process_singleton_subclass.h" 19 #include "chrome_frame/test/net/process_singleton_subclass.h"
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 virtual ~FakeExternalTab(); 27 virtual ~FakeExternalTab();
28 28
29 virtual void Initialize(); 29 virtual void Initialize();
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 // This is the thread that runs all the UrlRequest tests. 80 // This is the thread that runs all the UrlRequest tests.
81 // Within its context, the Initialize() and Shutdown() routines above 81 // Within its context, the Initialize() and Shutdown() routines above
82 // will be called. 82 // will be called.
83 static DWORD WINAPI RunAllUnittests(void* param); 83 static DWORD WINAPI RunAllUnittests(void* param);
84 84
85 static void TakeDownBrowser(CFUrlRequestUnittestRunner* me); 85 static void TakeDownBrowser(CFUrlRequestUnittestRunner* me);
86 86
87 protected: 87 protected:
88 88
89 protected: 89 protected:
90 ScopedHandle test_thread_; 90 base::win::ScopedHandle test_thread_;
91 DWORD test_thread_id_; 91 DWORD test_thread_id_;
92 92
93 scoped_ptr<test_server::SimpleWebServer> test_http_server_; 93 scoped_ptr<test_server::SimpleWebServer> test_http_server_;
94 test_server::SimpleResponse chrome_frame_html_; 94 test_server::SimpleResponse chrome_frame_html_;
95 95
96 // The fake chrome instance. This instance owns the UI message loop 96 // The fake chrome instance. This instance owns the UI message loop
97 // on the main thread. 97 // on the main thread.
98 FakeExternalTab fake_chrome_; 98 FakeExternalTab fake_chrome_;
99 scoped_ptr<ProcessSingletonSubclass> pss_subclass_; 99 scoped_ptr<ProcessSingletonSubclass> pss_subclass_;
100 scoped_ptr<BrowserThread> main_thread_; 100 scoped_ptr<BrowserThread> main_thread_;
101 }; 101 };
102 102
103 #endif // CHROME_FRAME_TEST_NET_FAKE_EXTERNAL_TAB_H_ 103 #endif // CHROME_FRAME_TEST_NET_FAKE_EXTERNAL_TAB_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698