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

Unified Diff: gpu/gpu_plugin/gpu_plugin_object_factory_unittest.cc

Issue 465040: Added CommandBufferClient, CommandBufferStub and some IPC messages.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years 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 | « gpu/gpu_plugin/gpu_plugin_object_factory.cc ('k') | gpu/gpu_plugin/gpu_plugin_object_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/gpu_plugin/gpu_plugin_object_factory_unittest.cc
===================================================================
--- gpu/gpu_plugin/gpu_plugin_object_factory_unittest.cc (revision 34314)
+++ gpu/gpu_plugin/gpu_plugin_object_factory_unittest.cc (working copy)
@@ -1,41 +0,0 @@
-// Copyright (c) 2006-2008 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.
-
-#include "gpu/gpu_plugin/gpu_plugin_object.h"
-#include "gpu/gpu_plugin/gpu_plugin_object_factory.h"
-#include "gpu/np_utils/np_browser_stub.h"
-#include "testing/gmock/include/gmock/gmock.h"
-#include "testing/gtest/include/gtest/gtest.h"
-
-using np_utils::PluginObject;
-
-namespace gpu_plugin {
-
-class PluginObjectFactoryTest : public testing::Test {
- protected:
- virtual void SetUp() {
- factory_ = new GPUPluginObjectFactory;
- }
-
- virtual void TearDown() {
- delete factory_;
- }
-
- np_utils::StubNPBrowser stub_browser_;
- GPUPluginObjectFactory* factory_;
-};
-
-TEST_F(PluginObjectFactoryTest, ReturnsNullForUnknownMimeType) {
- PluginObject* plugin_object = factory_->CreatePluginObject(
- NULL, "application/unknown");
- EXPECT_TRUE(NULL == plugin_object);
-}
-
-TEST_F(PluginObjectFactoryTest, CreatesGPUPlugin) {
- PluginObject* plugin_object = factory_->CreatePluginObject(
- NULL, const_cast<NPMIMEType>(GPUPluginObject::kPluginType));
- EXPECT_TRUE(NULL != plugin_object);
-}
-
-} // namespace gpu_plugin
« no previous file with comments | « gpu/gpu_plugin/gpu_plugin_object_factory.cc ('k') | gpu/gpu_plugin/gpu_plugin_object_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698