Don Turner | 94fe485 | 2018-07-03 08:42:09 +0100 | [diff] [blame^] | 1 | /* |
| 2 | * Copyright 2018 The Android Open Source Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
| 17 | |
| 18 | #include <gtest/gtest.h> |
| 19 | #include <oboe/Definitions.h> |
| 20 | #include <oboe/Utilities.h> |
| 21 | |
| 22 | /** |
| 23 | * Tests needing to be written: |
| 24 | * |
| 25 | * getChannelCount |
| 26 | * getDirection |
| 27 | getSampleRate |
| 28 | getFramesPerCallback |
| 29 | getFormat |
| 30 | getBufferSizeInFrames |
| 31 | getBufferCapacityInFrames |
| 32 | getSharingMode |
| 33 | getPerformanceMode |
| 34 | getDeviceId |
| 35 | getCallback |
| 36 | getUsage |
| 37 | getContentType |
| 38 | getInputPreset |
| 39 | getSessionId |
| 40 | getState |
| 41 | getXRunCount |
| 42 | getFramesPerBurst |
| 43 | isPlaying |
| 44 | getBytesPerFrame |
| 45 | getBytesPerSample |
| 46 | getFramesWritten |
| 47 | getFramesRead |
| 48 | getTimestamp |
| 49 | getAudioApi |
| 50 | usesAAudio |
| 51 | |
| 52 | Stream state control |
| 53 | open |
| 54 | close |
| 55 | start |
| 56 | pause |
| 57 | flush |
| 58 | stop |
| 59 | requestStart |
| 60 | requestPause |
| 61 | requestFlush |
| 62 | requestStop |
| 63 | waitForStateChange |
| 64 | |
| 65 | Setters |
| 66 | setBufferSizeInFrames |
| 67 | |
| 68 | Helpers |
| 69 | calculateLatencyMillis |
| 70 | |
| 71 | I/O |
| 72 | write |
| 73 | read |
| 74 | */ |
| 75 | |
| 76 | using namespace oboe; |
| 77 | |
| 78 | class StreamClosedReturnValues : public ::testing::Test { |
| 79 | |
| 80 | |
| 81 | |
| 82 | }; |
| 83 | |
| 84 | TEST_F(StreamClosedReturnValues, GetChannelCountReturnsLastKnownValue){ |
| 85 | |
| 86 | FAIL(); |
| 87 | } |