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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "gpu/gpu_plugin/gpu_plugin_object.h"
6 #include "gpu/gpu_plugin/gpu_plugin_object_factory.h"
7 #include "gpu/np_utils/np_browser_stub.h"
8 #include "testing/gmock/include/gmock/gmock.h"
9 #include "testing/gtest/include/gtest/gtest.h"
10
11 using np_utils::PluginObject;
12
13 namespace gpu_plugin {
14
15 class PluginObjectFactoryTest : public testing::Test {
16 protected:
17 virtual void SetUp() {
18 factory_ = new GPUPluginObjectFactory;
19 }
20
21 virtual void TearDown() {
22 delete factory_;
23 }
24
25 np_utils::StubNPBrowser stub_browser_;
26 GPUPluginObjectFactory* factory_;
27 };
28
29 TEST_F(PluginObjectFactoryTest, ReturnsNullForUnknownMimeType) {
30 PluginObject* plugin_object = factory_->CreatePluginObject(
31 NULL, "application/unknown");
32 EXPECT_TRUE(NULL == plugin_object);
33 }
34
35 TEST_F(PluginObjectFactoryTest, CreatesGPUPlugin) {
36 PluginObject* plugin_object = factory_->CreatePluginObject(
37 NULL, const_cast<NPMIMEType>(GPUPluginObject::kPluginType));
38 EXPECT_TRUE(NULL != plugin_object);
39 }
40
41 } // namespace gpu_plugin
OLDNEW
« 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