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

Side by Side Diff: chrome/gpu/gpu_idirect3d9_mock_win.h

Issue 6413036: Another big out-of-lining of test code. Hits a lot of gmock objects (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: lei comments Created 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/gpu/gpu_idirect3d9_mock_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_GPU_GPU_IDIRECT3D9_MOCK_WIN_H__ 5 #ifndef CHROME_GPU_GPU_IDIRECT3D9_MOCK_WIN_H__
6 #define CHROME_GPU_GPU_IDIRECT3D9_MOCK_WIN_H__ 6 #define CHROME_GPU_GPU_IDIRECT3D9_MOCK_WIN_H__
7 #pragma once 7 #pragma once
8 8
9 #include <d3d9.h> 9 #include <d3d9.h>
10 #include <windows.h> 10 #include <windows.h>
11 11
12 #include "testing/gmock/include/gmock/gmock.h" 12 #include "testing/gmock/include/gmock/gmock.h"
13 13
14 class IDirect3D9Mock : public IDirect3D9 { 14 class IDirect3D9Mock : public IDirect3D9 {
15 public: 15 public:
16 IDirect3D9Mock() {} 16 IDirect3D9Mock();
17 virtual ~IDirect3D9Mock();
17 18
18 MOCK_METHOD5_WITH_CALLTYPE( 19 MOCK_METHOD5_WITH_CALLTYPE(
19 STDMETHODCALLTYPE, CheckDepthStencilMatch, 20 STDMETHODCALLTYPE, CheckDepthStencilMatch,
20 HRESULT(UINT Adapter, D3DDEVTYPE DeviceType, 21 HRESULT(UINT Adapter, D3DDEVTYPE DeviceType,
21 D3DFORMAT AdapterFormat, D3DFORMAT RenderTargetFormat, 22 D3DFORMAT AdapterFormat, D3DFORMAT RenderTargetFormat,
22 D3DFORMAT DepthStencilFormat)); 23 D3DFORMAT DepthStencilFormat));
23 MOCK_METHOD6_WITH_CALLTYPE( 24 MOCK_METHOD6_WITH_CALLTYPE(
24 STDMETHODCALLTYPE, CheckDeviceFormat, 25 STDMETHODCALLTYPE, CheckDeviceFormat,
25 HRESULT(UINT Adapter, D3DDEVTYPE DeviceType, 26 HRESULT(UINT Adapter, D3DDEVTYPE DeviceType,
26 D3DFORMAT AdapterFormat, DWORD Usage, 27 D3DFORMAT AdapterFormat, DWORD Usage,
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 D3DCAPS9* pCaps)); 68 D3DCAPS9* pCaps));
68 MOCK_METHOD1_WITH_CALLTYPE(STDMETHODCALLTYPE, RegisterSoftwareDevice, 69 MOCK_METHOD1_WITH_CALLTYPE(STDMETHODCALLTYPE, RegisterSoftwareDevice,
69 HRESULT(void* pInitializeFunction)); 70 HRESULT(void* pInitializeFunction));
70 MOCK_METHOD2_WITH_CALLTYPE(STDMETHODCALLTYPE, QueryInterface, 71 MOCK_METHOD2_WITH_CALLTYPE(STDMETHODCALLTYPE, QueryInterface,
71 HRESULT(REFIID riid, void** ppvObj)); 72 HRESULT(REFIID riid, void** ppvObj));
72 MOCK_METHOD0_WITH_CALLTYPE(STDMETHODCALLTYPE, AddRef, ULONG()); 73 MOCK_METHOD0_WITH_CALLTYPE(STDMETHODCALLTYPE, AddRef, ULONG());
73 MOCK_METHOD0_WITH_CALLTYPE(STDMETHODCALLTYPE, Release, ULONG()); 74 MOCK_METHOD0_WITH_CALLTYPE(STDMETHODCALLTYPE, Release, ULONG());
74 }; 75 };
75 76
76 #endif // CHROME_GPU_GPU_IDIRECT3D9_MOCK_WIN_H__ 77 #endif // CHROME_GPU_GPU_IDIRECT3D9_MOCK_WIN_H__
OLDNEW
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/gpu/gpu_idirect3d9_mock_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698