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

Unified Diff: content/common/gpu/gpu_channel_test_common.h

Issue 1703163002: Remove dependency on GURL from content/common/gpu (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unnecessary include from gpu_command_buffer_stub Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/common/gpu/gpu_channel_manager_delegate.h ('k') | content/common/gpu/gpu_channel_test_common.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/gpu_channel_test_common.h
diff --git a/content/common/gpu/gpu_channel_test_common.h b/content/common/gpu/gpu_channel_test_common.h
index 406f8d9bfdb80d6485dbac9c69a25610dcef5ad7..29c7af746f9dd7e806193a93cf06b49ed62f97a7 100644
--- a/content/common/gpu/gpu_channel_test_common.h
+++ b/content/common/gpu/gpu_channel_test_common.h
@@ -7,6 +7,7 @@
#include "base/memory/scoped_ptr.h"
#include "content/common/gpu/gpu_channel.h"
#include "content/common/gpu/gpu_channel_manager.h"
+#include "content/common/gpu/gpu_channel_manager_delegate.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace base {
@@ -21,9 +22,22 @@ namespace content {
class SyncPointManager;
+class TestGpuChannelManagerDelegate : public GpuChannelManagerDelegate {
+ public:
+ TestGpuChannelManagerDelegate();
+ ~TestGpuChannelManagerDelegate() override;
+
+ // GpuChannelManagerDelegate implementation.
+ void SetActiveURL(const std::string& url) override;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(TestGpuChannelManagerDelegate);
+};
+
class TestGpuChannelManager : public GpuChannelManager {
public:
TestGpuChannelManager(IPC::TestSink* sink,
+ GpuChannelManagerDelegate* delegate,
base::SingleThreadTaskRunner* task_runner,
base::SingleThreadTaskRunner* io_task_runner,
gpu::SyncPointManager* sync_point_manager,
@@ -87,6 +101,7 @@ class GpuChannelTestCommon : public testing::Test {
scoped_refptr<base::TestSimpleTaskRunner> task_runner_;
scoped_refptr<base::TestSimpleTaskRunner> io_task_runner_;
scoped_ptr<gpu::SyncPointManager> sync_point_manager_;
+ scoped_ptr<TestGpuChannelManagerDelegate> channel_manager_delegate_;
scoped_ptr<GpuChannelManager> channel_manager_;
};
« no previous file with comments | « content/common/gpu/gpu_channel_manager_delegate.h ('k') | content/common/gpu/gpu_channel_test_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698