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

Side by Side Diff: chrome/browser/extensions/test_extension_environment.h

Issue 14113053: chrome: Use base::MessageLoop. (Part 3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_BROWSER_EXTENSIONS_TEST_EXTENSION_ENVIRONMENT_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_TEST_EXTENSION_ENVIRONMENT_H_
6 #define CHROME_BROWSER_EXTENSIONS_TEST_EXTENSION_ENVIRONMENT_H_ 6 #define CHROME_BROWSER_EXTENSIONS_TEST_EXTENSION_ENVIRONMENT_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "content/public/test/test_browser_thread.h" 10 #include "content/public/test/test_browser_thread.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 // Creates an Extension and registers it with the ExtensionService. 48 // Creates an Extension and registers it with the ExtensionService.
49 // The Extension has a default manifest of {name: "Extension", 49 // The Extension has a default manifest of {name: "Extension",
50 // version: "1.0", manifest_version: 2}, and values in 50 // version: "1.0", manifest_version: 2}, and values in
51 // manifest_extra override these defaults. 51 // manifest_extra override these defaults.
52 const Extension* MakeExtension(const base::Value& manifest_extra); 52 const Extension* MakeExtension(const base::Value& manifest_extra);
53 53
54 // Returns a test web contents that has a tab id. 54 // Returns a test web contents that has a tab id.
55 scoped_ptr<content::WebContents> MakeTab() const; 55 scoped_ptr<content::WebContents> MakeTab() const;
56 56
57 private: 57 private:
58 MessageLoopForUI loop_; 58 base::MessageLoopForUI loop_;
59 content::TestBrowserThread ui_thread_; 59 content::TestBrowserThread ui_thread_;
60 content::TestBrowserThread file_thread_; 60 content::TestBrowserThread file_thread_;
61 content::TestBrowserThread file_blocking_thread_; 61 content::TestBrowserThread file_blocking_thread_;
62 content::TestBrowserThread io_thread_; 62 content::TestBrowserThread io_thread_;
63 // We may need to add the rest of the browser threads here. This is 63 // We may need to add the rest of the browser threads here. This is
64 // likely to be indicated by memory leaks in which the object was 64 // likely to be indicated by memory leaks in which the object was
65 // expected to be freed by a DeleteSoon() call. 65 // expected to be freed by a DeleteSoon() call.
66 66
67 #if defined(OS_CHROMEOS) 67 #if defined(OS_CHROMEOS)
68 chromeos::ScopedTestUserManager test_user_manager_; 68 chromeos::ScopedTestUserManager test_user_manager_;
69 #endif 69 #endif
70 70
71 #if defined(OS_WIN) 71 #if defined(OS_WIN)
72 ui::ScopedOleInitializer ole_initializer_; 72 ui::ScopedOleInitializer ole_initializer_;
73 #endif 73 #endif
74 scoped_ptr<TestingProfile> profile_; 74 scoped_ptr<TestingProfile> profile_;
75 ExtensionService* extension_service_; 75 ExtensionService* extension_service_;
76 }; 76 };
77 77
78 } // namespace extensions 78 } // namespace extensions
79 79
80 #endif // CHROME_BROWSER_EXTENSIONS_TEST_EXTENSION_ENVIRONMENT_H_ 80 #endif // CHROME_BROWSER_EXTENSIONS_TEST_EXTENSION_ENVIRONMENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698