iOS: baby steps to being able to include_tests=1

- pull iossim in DEPS even when on mac (because bug 2152)
- fix audio_device_test_api.cc's use of bool instead of bool* (!)
- move unused-on-mobile message to non-mobile-only section of
  hardware_before_streaming_test.cc

BUG=3185
R=kjellander@webrtc.org, niklas.enbom@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/11989004

git-svn-id: http://webrtc.googlecode.com/svn/trunk@5914 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
fischman@webrtc.org
2014-04-15 20:26:41 +00:00
parent 7c6e3d188a
commit ca539bbed0
4 changed files with 16 additions and 10 deletions

View File

@ -1792,19 +1792,19 @@ TEST_F(AudioDeviceAPITest, SetPlayoutSpeaker) {
#if defined(WEBRTC_IOS)
// Not playing or recording, should just return a success
EXPECT_EQ(0, audio_device_->SetLoudspeakerStatus(true));
EXPECT_EQ(0, audio_device_->GetLoudspeakerStatus(loudspeakerOn));
EXPECT_EQ(0, audio_device_->GetLoudspeakerStatus(&loudspeakerOn));
EXPECT_TRUE(loudspeakerOn);
EXPECT_EQ(0, audio_device_->SetLoudspeakerStatus(false));
EXPECT_EQ(0, audio_device_->GetLoudspeakerStatus(loudspeakerOn));
EXPECT_EQ(0, audio_device_->GetLoudspeakerStatus(&loudspeakerOn));
EXPECT_FALSE(loudspeakerOn);
EXPECT_EQ(0, audio_device_->InitPlayout());
EXPECT_EQ(0, audio_device_->StartPlayout());
EXPECT_EQ(0, audio_device_->SetLoudspeakerStatus(true));
EXPECT_EQ(0, audio_device_->GetLoudspeakerStatus(loudspeakerOn));
EXPECT_EQ(0, audio_device_->GetLoudspeakerStatus(&loudspeakerOn));
EXPECT_TRUE(loudspeakerOn);
EXPECT_EQ(0, audio_device_->SetLoudspeakerStatus(false));
EXPECT_EQ(0, audio_device_->GetLoudspeakerStatus(loudspeakerOn));
EXPECT_EQ(0, audio_device_->GetLoudspeakerStatus(&loudspeakerOn));
EXPECT_FALSE(loudspeakerOn);
#else

View File

@ -2688,7 +2688,7 @@ int32_t FuncTestManager::TestAdvancedMBAPI()
" from the loudspeaker.\n\
> Press any key to stop...\n \n");
PAUSE(DEFAULT_PAUSE_TIME);
EXPECT_EQ(0, audioDevice->GetLoudspeakerStatus(loudspeakerOn));
EXPECT_EQ(0, audioDevice->GetLoudspeakerStatus(&loudspeakerOn));
EXPECT_TRUE(loudspeakerOn);
TEST_LOG("Set to not use speaker\n");
@ -2697,7 +2697,7 @@ int32_t FuncTestManager::TestAdvancedMBAPI()
" from the loudspeaker.\n\
> Press any key to stop...\n \n");
PAUSE(DEFAULT_PAUSE_TIME);
EXPECT_EQ(0, audioDevice->GetLoudspeakerStatus(loudspeakerOn));
EXPECT_EQ(0, audioDevice->GetLoudspeakerStatus(&loudspeakerOn));
EXPECT_FALSE(loudspeakerOn);
#endif