1049249ce7addafaa0bd09480cd8858cd2c54138fAndreas Gampe/*
2049249ce7addafaa0bd09480cd8858cd2c54138fAndreas Gampe * Copyright (C) 2011 The Android Open Source Project
3049249ce7addafaa0bd09480cd8858cd2c54138fAndreas Gampe *
4049249ce7addafaa0bd09480cd8858cd2c54138fAndreas Gampe * Licensed under the Apache License, Version 2.0 (the "License");
5049249ce7addafaa0bd09480cd8858cd2c54138fAndreas Gampe * you may not use this file except in compliance with the License.
6049249ce7addafaa0bd09480cd8858cd2c54138fAndreas Gampe * You may obtain a copy of the License at
7049249ce7addafaa0bd09480cd8858cd2c54138fAndreas Gampe *
8049249ce7addafaa0bd09480cd8858cd2c54138fAndreas Gampe *      http://www.apache.org/licenses/LICENSE-2.0
9049249ce7addafaa0bd09480cd8858cd2c54138fAndreas Gampe *
10049249ce7addafaa0bd09480cd8858cd2c54138fAndreas Gampe * Unless required by applicable law or agreed to in writing, software
11049249ce7addafaa0bd09480cd8858cd2c54138fAndreas Gampe * distributed under the License is distributed on an "AS IS" BASIS,
12049249ce7addafaa0bd09480cd8858cd2c54138fAndreas Gampe * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13049249ce7addafaa0bd09480cd8858cd2c54138fAndreas Gampe * See the License for the specific language governing permissions and
14049249ce7addafaa0bd09480cd8858cd2c54138fAndreas Gampe * limitations under the License.
15049249ce7addafaa0bd09480cd8858cd2c54138fAndreas Gampe */
16049249ce7addafaa0bd09480cd8858cd2c54138fAndreas Gampe
17049249ce7addafaa0bd09480cd8858cd2c54138fAndreas Gampe#include "NativeBridgeTest.h"
18049249ce7addafaa0bd09480cd8858cd2c54138fAndreas Gampe
19049249ce7addafaa0bd09480cd8858cd2c54138fAndreas Gampenamespace android {
20049249ce7addafaa0bd09480cd8858cd2c54138fAndreas Gampe
21049249ce7addafaa0bd09480cd8858cd2c54138fAndreas GampeTEST_F(NativeBridgeTest, NoNativeBridge) {
22049249ce7addafaa0bd09480cd8858cd2c54138fAndreas Gampe    EXPECT_EQ(false, NativeBridgeAvailable());
23035bd7541ed909344348b6a4e17a7ef01a434653Andreas Gampe    // Try to initialize. This should fail as we are not set up.
24ab0da5a9a6860046619629b8e6b83692d35dff86jgu    EXPECT_EQ(false, InitializeNativeBridge(nullptr, nullptr));
25049249ce7addafaa0bd09480cd8858cd2c54138fAndreas Gampe    EXPECT_EQ(true, NativeBridgeError());
26035bd7541ed909344348b6a4e17a7ef01a434653Andreas Gampe    EXPECT_EQ(false, NativeBridgeAvailable());
27049249ce7addafaa0bd09480cd8858cd2c54138fAndreas Gampe}
28049249ce7addafaa0bd09480cd8858cd2c54138fAndreas Gampe
29049249ce7addafaa0bd09480cd8858cd2c54138fAndreas Gampe}  // namespace android
30