OLD | NEW |
| (Empty) |
1 // Copyright 2009 Google Inc. | |
2 // | |
3 // Licensed under the Apache License, Version 2.0 (the "License"); | |
4 // you may not use this file except in compliance with the License. | |
5 // You may obtain a copy of the License at | |
6 // | |
7 // http://www.apache.org/licenses/LICENSE-2.0 | |
8 // | |
9 // Unless required by applicable law or agreed to in writing, software | |
10 // distributed under the License is distributed on an "AS IS" BASIS, | |
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
12 // See the License for the specific language governing permissions and | |
13 // limitations under the License. | |
14 // ======================================================================== | |
15 | |
16 #include "omaha/plugins/update/npapi/testing/dispatch_host_test_interface.h" | |
17 | |
18 namespace omaha { | |
19 | |
20 STDMETHODIMP DispatchHostTestInterface::Random(INT* x) { | |
21 *x = 42; | |
22 return S_OK; | |
23 } | |
24 | |
25 STDMETHODIMP DispatchHostTestInterface::get_Property(INT* x) { | |
26 *x = 0xdeadbeef; | |
27 return S_OK; | |
28 } | |
29 | |
30 STDMETHODIMP DispatchHostTestInterface::put_Property(INT x) { | |
31 UNREFERENCED_PARAMETER(x); | |
32 return S_OK; | |
33 } | |
34 | |
35 STDMETHODIMP DispatchHostTestInterface::get_ReadOnlyProperty(INT* x) { | |
36 *x = 19700101; | |
37 return S_OK; | |
38 } | |
39 | |
40 STDMETHODIMP DispatchHostTestInterface::put_WriteOnlyProperty(INT x) { | |
41 UNREFERENCED_PARAMETER(x); | |
42 return S_OK; | |
43 } | |
44 | |
45 STDMETHODIMP DispatchHostTestInterface::AddAsMethod(INT a, INT b, INT* c) { | |
46 *c = a + b; | |
47 return S_OK; | |
48 } | |
49 | |
50 STDMETHODIMP DispatchHostTestInterface::get_AddAsProperty( | |
51 INT a, INT b, INT* c) { | |
52 *c = a + b; | |
53 return S_OK; | |
54 } | |
55 | |
56 STDMETHODIMP DispatchHostTestInterface::DidYouMeanRecursion(IDispatch** me) { | |
57 *me = this; | |
58 return S_OK; | |
59 } | |
60 | |
61 STDMETHODIMP DispatchHostTestInterface2::get_Get(INT index, INT* x) { | |
62 *x = index << 1; | |
63 return S_OK; | |
64 } | |
65 | |
66 } // namespace omaha | |
OLD | NEW |