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

Unified Diff: content/test/mock_webblob_registry_impl.h

Issue 434833002: Add mock WebBlobRegistry to TestWebKitPlatformSupport. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed feedback. Created 6 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/content_tests.gypi ('k') | content/test/mock_webblob_registry_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/mock_webblob_registry_impl.h
diff --git a/content/child/webblobregistry_impl.h b/content/test/mock_webblob_registry_impl.h
similarity index 63%
copy from content/child/webblobregistry_impl.h
copy to content/test/mock_webblob_registry_impl.h
index 6588a5290735268ed998c96b09545e1a94f84ef4..41fb66d73f6c31dc7962f243fb8f19c7974fb67f 100644
--- a/content/child/webblobregistry_impl.h
+++ b/content/test/mock_webblob_registry_impl.h
@@ -1,28 +1,19 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
+// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CONTENT_CHILD_FILEAPI_WEBBLOBREGISTRY_IMPL_H_
-#define CONTENT_CHILD_FILEAPI_WEBBLOBREGISTRY_IMPL_H_
+#ifndef CONTENT_TEST_MOCK_WEB_BLOB_REGISTRY_IMPL_H
+#define CONTENT_TEST_MOCK_WEB_BLOB_REGISTRY_IMPL_H
-#include "base/memory/ref_counted.h"
+#include "base/macros.h"
#include "third_party/WebKit/public/platform/WebBlobRegistry.h"
-#include "webkit/common/blob/blob_data.h"
-
-namespace blink {
-class WebBlobData;
-class WebString;
-class WebThreadSafeData;
-class WebURL;
-}
namespace content {
-class ThreadSafeSender;
-class WebBlobRegistryImpl : public blink::WebBlobRegistry {
+class MockWebBlobRegistryImpl : public blink::WebBlobRegistry {
public:
- explicit WebBlobRegistryImpl(ThreadSafeSender* sender);
- virtual ~WebBlobRegistryImpl();
+ MockWebBlobRegistryImpl();
+ virtual ~MockWebBlobRegistryImpl();
virtual void registerBlobData(const blink::WebString& uuid,
const blink::WebBlobData& data);
@@ -44,12 +35,9 @@ class WebBlobRegistryImpl : public blink::WebBlobRegistry {
virtual void unregisterStreamURL(const blink::WebURL& url);
private:
- void SendDataForBlob(const std::string& uuid_str,
- const blink::WebThreadSafeData& data);
-
- scoped_refptr<ThreadSafeSender> sender_;
+ DISALLOW_COPY_AND_ASSIGN(MockWebBlobRegistryImpl);
};
} // namespace content
-#endif // CONTENT_CHILD_FILEAPI_WEBBLOBREGISTRY_IMPL_H_
+#endif // CONTENT_TEST_MOCK_WEB_BLOB_REGISTRY_IMPL_H
« no previous file with comments | « content/content_tests.gypi ('k') | content/test/mock_webblob_registry_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698