• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright (C) 2020 The Android Open Source Project
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 #include "MockGraphicsAgentFactory.h"
15 
16 #include <stdio.h>
17 
18 #include "gtest/gtest.h"
19 
20 extern "C" const QAndroidVmOperations* const gMockQAndroidVmOperations;
21 extern "C" const QAndroidEmulatorWindowAgent* const
22         gMockQAndroidEmulatorWindowAgent;
23 extern "C" const QAndroidMultiDisplayAgent* const
24         gMockQAndroidMultiDisplayAgent;
25 
26 namespace android {
27 namespace emulation {
28 
29 const QAndroidVmOperations* const
android_get_QAndroidVmOperations() const30 MockGraphicsAgentFactory::android_get_QAndroidVmOperations() const {
31     return gMockQAndroidVmOperations;
32 }
33 
34 const QAndroidMultiDisplayAgent* const
android_get_QAndroidMultiDisplayAgent() const35 MockGraphicsAgentFactory::android_get_QAndroidMultiDisplayAgent() const {
36     return gMockQAndroidMultiDisplayAgent;
37 }
38 
39 const QAndroidEmulatorWindowAgent* const
android_get_QAndroidEmulatorWindowAgent() const40 MockGraphicsAgentFactory::android_get_QAndroidEmulatorWindowAgent() const {
41     return gMockQAndroidEmulatorWindowAgent;
42 }
43 }  // namespace emulation
44 }  // namespace android
45