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

Side by Side Diff: content/test/mock_google_streaming_server.h

Issue 630813002: Replace OVERRIDE and FINAL with override and final in content/test/[a-s]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « content/test/image_decoder_test.h ('k') | content/test/mock_render_process.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #ifndef CONTENT_TEST_SPEECH_MOCK_GOOGLE_STREAMING_SERVER_H_ 5 #ifndef CONTENT_TEST_SPEECH_MOCK_GOOGLE_STREAMING_SERVER_H_
6 #define CONTENT_TEST_SPEECH_MOCK_GOOGLE_STREAMING_SERVER_H_ 6 #define CONTENT_TEST_SPEECH_MOCK_GOOGLE_STREAMING_SERVER_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "content/public/common/speech_recognition_result.h" 9 #include "content/public/common/speech_recognition_result.h"
10 #include "net/url_request/test_url_fetcher_factory.h" 10 #include "net/url_request/test_url_fetcher_factory.h"
(...skipping 14 matching lines...) Expand all
25 virtual void OnClientConnected() = 0; 25 virtual void OnClientConnected() = 0;
26 virtual void OnClientAudioUpload() = 0; 26 virtual void OnClientAudioUpload() = 0;
27 virtual void OnClientAudioUploadComplete() = 0; 27 virtual void OnClientAudioUploadComplete() = 0;
28 virtual void OnClientDisconnected() = 0; 28 virtual void OnClientDisconnected() = 0;
29 }; 29 };
30 30
31 explicit MockGoogleStreamingServer(Delegate* delegate); 31 explicit MockGoogleStreamingServer(Delegate* delegate);
32 virtual ~MockGoogleStreamingServer(); 32 virtual ~MockGoogleStreamingServer();
33 33
34 // net::TestURLFetcherDelegateForTests implementation. 34 // net::TestURLFetcherDelegateForTests implementation.
35 virtual void OnRequestStart(int fetcher_id) OVERRIDE; 35 virtual void OnRequestStart(int fetcher_id) override;
36 virtual void OnChunkUpload(int fetcher_id) OVERRIDE; 36 virtual void OnChunkUpload(int fetcher_id) override;
37 virtual void OnRequestEnd(int fetcher_id) OVERRIDE; 37 virtual void OnRequestEnd(int fetcher_id) override;
38 38
39 void SimulateResult(const content::SpeechRecognitionResult& result); 39 void SimulateResult(const content::SpeechRecognitionResult& result);
40 void SimulateServerFailure(); 40 void SimulateServerFailure();
41 void SimulateMalformedResponse(); 41 void SimulateMalformedResponse();
42 42
43 // Retrieves the language parmeter for the request (e.g., lang=en-US). 43 // Retrieves the language parmeter for the request (e.g., lang=en-US).
44 const std::string& GetRequestLanguage() const; 44 const std::string& GetRequestLanguage() const;
45 45
46 // Retrieves the grammar parmeter for the request (e.g., lm=http://url/g.xml). 46 // Retrieves the grammar parmeter for the request (e.g., lm=http://url/g.xml).
47 const std::string& GetRequestGrammar() const; 47 const std::string& GetRequestGrammar() const;
(...skipping 10 matching lines...) Expand all
58 // Request arguments extracted by the HTTP query string. 58 // Request arguments extracted by the HTTP query string.
59 std::string request_language; 59 std::string request_language;
60 std::string request_grammar; 60 std::string request_grammar;
61 61
62 DISALLOW_COPY_AND_ASSIGN(MockGoogleStreamingServer); 62 DISALLOW_COPY_AND_ASSIGN(MockGoogleStreamingServer);
63 }; 63 };
64 64
65 } // namespace content 65 } // namespace content
66 66
67 #endif // CONTENT_TEST_SPEECH_MOCK_GOOGLE_STREAMING_SERVER_H_ 67 #endif // CONTENT_TEST_SPEECH_MOCK_GOOGLE_STREAMING_SERVER_H_
OLDNEW
« no previous file with comments | « content/test/image_decoder_test.h ('k') | content/test/mock_render_process.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698