summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/render_process_unittest.cc
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-20 07:15:17 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-20 07:15:17 +0000
commitea51de3307a6a5947ca047fa9d0e20359fdcf658 (patch)
treec1a49c1d41c4bfbf74ddbc28c371f840dd2848fa /chrome/renderer/render_process_unittest.cc
parentb6aedfff89cd93f07c1c38a13062801e81bf26e4 (diff)
downloadchromium_src-ea51de3307a6a5947ca047fa9d0e20359fdcf658.zip
chromium_src-ea51de3307a6a5947ca047fa9d0e20359fdcf658.tar.gz
chromium_src-ea51de3307a6a5947ca047fa9d0e20359fdcf658.tar.bz2
Reverting 10080.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10082 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/render_process_unittest.cc')
-rw-r--r--chrome/renderer/render_process_unittest.cc9
1 files changed, 4 insertions, 5 deletions
diff --git a/chrome/renderer/render_process_unittest.cc b/chrome/renderer/render_process_unittest.cc
index 7859d8f..4f77d5d 100644
--- a/chrome/renderer/render_process_unittest.cc
+++ b/chrome/renderer/render_process_unittest.cc
@@ -13,16 +13,15 @@ namespace {
class RenderProcessTest : public testing::Test {
public:
virtual void SetUp() {
- render_process_.reset(new RenderProcess(L"render_process_unittest"));
+ RenderProcess::GlobalInit(L"render_process_unittest");
}
virtual void TearDown() {
- render_process_.reset();
+ RenderProcess::GlobalCleanup();
}
private:
MessageLoopForIO message_loop_;
- scoped_ptr<RenderProcess> render_process_;
};
@@ -31,10 +30,10 @@ TEST_F(RenderProcessTest, TestTransportDIBAllocation) {
#if !defined(OS_MACOSX)
const gfx::Rect rect(0, 0, 100, 100);
TransportDIB* dib;
- skia::PlatformCanvas* canvas = RenderProcess::current()->GetDrawingCanvas(&dib, rect);
+ skia::PlatformCanvas* canvas = RenderProcess::GetDrawingCanvas(&dib, rect);
ASSERT_TRUE(dib);
ASSERT_TRUE(canvas);
- RenderProcess::current()->ReleaseTransportDIB(dib);
+ RenderProcess::ReleaseTransportDIB(dib);
delete canvas;
#endif
}