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

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: Fix compilation on Windows. 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
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 68%
copy from content/child/webblobregistry_impl.h
copy to content/test/mock_webblob_registry_impl.h
index 6588a5290735268ed998c96b09545e1a94f84ef4..b8389cf5e6d57dba5498a19eaa1bff829028c555 100644
--- a/content/child/webblobregistry_impl.h
+++ b/content/test/mock_webblob_registry_impl.h
@@ -1,13 +1,12 @@
-// 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;
@@ -17,12 +16,11 @@ class WebURL;
}
dcheng 2014/08/01 06:35:31 None of these forward declares should be required.
pwnall-personal 2014/08/01 20:37:47 Done. Thank you! Good point! I also removed the fo
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 +42,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

Powered by Google App Engine
This is Rietveld 408576698