Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1513)

Side by Side Diff: content/browser/speech/speech_recognizer_unittest.cc

Issue 7006005: Move UrlFetcher to content. I originally thought that it's only used by chrome code, but turns o... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix linux Created 9 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <vector> 5 #include <vector>
6 6
7 #include "chrome/common/net/test_url_fetcher_factory.h"
8 #include "content/browser/browser_thread.h" 7 #include "content/browser/browser_thread.h"
9 #include "content/browser/speech/speech_recognizer.h" 8 #include "content/browser/speech/speech_recognizer.h"
9 #include "content/common/test_url_fetcher_factory.h"
10 #include "media/audio/test_audio_input_controller_factory.h" 10 #include "media/audio/test_audio_input_controller_factory.h"
11 #include "net/base/net_errors.h" 11 #include "net/base/net_errors.h"
12 #include "net/url_request/url_request_status.h" 12 #include "net/url_request/url_request_status.h"
13 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
14 14
15 using media::AudioInputController; 15 using media::AudioInputController;
16 using media::TestAudioInputController; 16 using media::TestAudioInputController;
17 using media::TestAudioInputControllerFactory; 17 using media::TestAudioInputControllerFactory;
18 18
19 namespace speech_input { 19 namespace speech_input {
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after
391 EXPECT_FLOAT_EQ(0.89926866f, volume_); 391 EXPECT_FLOAT_EQ(0.89926866f, volume_);
392 EXPECT_FLOAT_EQ(0.75071919f, noise_volume_); 392 EXPECT_FLOAT_EQ(0.75071919f, noise_volume_);
393 393
394 EXPECT_EQ(SpeechRecognizer::RECOGNIZER_NO_ERROR, error_); 394 EXPECT_EQ(SpeechRecognizer::RECOGNIZER_NO_ERROR, error_);
395 EXPECT_FALSE(recording_complete_); 395 EXPECT_FALSE(recording_complete_);
396 EXPECT_FALSE(recognition_complete_); 396 EXPECT_FALSE(recognition_complete_);
397 recognizer_->CancelRecognition(); 397 recognizer_->CancelRecognition();
398 } 398 }
399 399
400 } // namespace speech_input 400 } // namespace speech_input
OLDNEW
« no previous file with comments | « content/browser/speech/speech_recognition_request_unittest.cc ('k') | content/common/test_url_fetcher_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698