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

Side by Side Diff: webkit/support/test_webkit_platform_support.h

Issue 12093086: Avoid leaking TestWebIDBFactory instances, and reset (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 10 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
« no previous file with comments | « no previous file | webkit/support/test_webkit_platform_support.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 WEBKIT_SUPPORT_TEST_WEBKIT_PLATFORM_SUPPORT_H_ 5 #ifndef WEBKIT_SUPPORT_TEST_WEBKIT_PLATFORM_SUPPORT_H_
6 #define WEBKIT_SUPPORT_TEST_WEBKIT_PLATFORM_SUPPORT_H_ 6 #define WEBKIT_SUPPORT_TEST_WEBKIT_PLATFORM_SUPPORT_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "third_party/WebKit/Source/Platform/chromium/public/WebGamepads.h" 9 #include "third_party/WebKit/Source/Platform/chromium/public/WebGamepads.h"
10 #include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsContext3 D.h" 10 #include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsContext3 D.h"
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 const char16* characters, 130 const char16* characters,
131 size_t length, 131 size_t length,
132 size_t before_index, 132 size_t before_index,
133 const WebKit::WebString& locale); 133 const WebKit::WebString& locale);
134 134
135 virtual WebKit::WebGestureCurve* createFlingAnimationCurve( 135 virtual WebKit::WebGestureCurve* createFlingAnimationCurve(
136 int device_source, 136 int device_source,
137 const WebKit::WebFloatPoint& velocity, 137 const WebKit::WebFloatPoint& velocity,
138 const WebKit::WebSize& cumulative_scroll); 138 const WebKit::WebSize& cumulative_scroll);
139 139
140 void ResetIDBFactory();
141
140 private: 142 private:
141 TestShellWebMimeRegistryImpl mime_registry_; 143 TestShellWebMimeRegistryImpl mime_registry_;
142 MockWebClipboardImpl mock_clipboard_; 144 MockWebClipboardImpl mock_clipboard_;
143 webkit_glue::WebFileUtilitiesImpl file_utilities_; 145 webkit_glue::WebFileUtilitiesImpl file_utilities_;
144 base::ScopedTempDir appcache_dir_; 146 base::ScopedTempDir appcache_dir_;
145 SimpleAppCacheSystem appcache_system_; 147 SimpleAppCacheSystem appcache_system_;
146 SimpleDatabaseSystem database_system_; 148 SimpleDatabaseSystem database_system_;
147 SimpleDomStorageSystem dom_storage_system_; 149 SimpleDomStorageSystem dom_storage_system_;
148 SimpleWebCookieJarImpl cookie_jar_; 150 SimpleWebCookieJarImpl cookie_jar_;
149 scoped_refptr<TestShellWebBlobRegistryImpl> blob_registry_; 151 scoped_refptr<TestShellWebBlobRegistryImpl> blob_registry_;
150 SimpleFileSystem file_system_; 152 SimpleFileSystem file_system_;
151 base::ScopedTempDir file_system_root_; 153 base::ScopedTempDir file_system_root_;
152 WebURLLoaderMockFactory url_loader_factory_; 154 WebURLLoaderMockFactory url_loader_factory_;
153 bool unit_test_mode_; 155 bool unit_test_mode_;
154 WebKit::WebGamepads gamepad_data_; 156 WebKit::WebGamepads gamepad_data_;
155 WebKit::Platform* shadow_platform_delegate_; 157 WebKit::Platform* shadow_platform_delegate_;
156 HyphenDict* hyphen_dictionary_; 158 HyphenDict* hyphen_dictionary_;
159 scoped_ptr<WebKit::WebIDBFactory> idb_factory_;
157 160
158 #if defined(OS_WIN) || defined(OS_MACOSX) 161 #if defined(OS_WIN) || defined(OS_MACOSX)
159 WebKit::WebThemeEngine* active_theme_engine_; 162 WebKit::WebThemeEngine* active_theme_engine_;
160 #endif 163 #endif
161 DISALLOW_COPY_AND_ASSIGN(TestWebKitPlatformSupport); 164 DISALLOW_COPY_AND_ASSIGN(TestWebKitPlatformSupport);
162 }; 165 };
163 166
164 #endif // WEBKIT_SUPPORT_TEST_WEBKIT_PLATFORM_SUPPORT_H_ 167 #endif // WEBKIT_SUPPORT_TEST_WEBKIT_PLATFORM_SUPPORT_H_
OLDNEW
« no previous file with comments | « no previous file | webkit/support/test_webkit_platform_support.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698