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

Side by Side Diff: chrome/browser/speech/extension_api/tts_extension_api_controller_unittest.cc

Issue 9808024: Move TTS extension API to chrome/browser/speech/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix chromeos compile error, rebase Created 8 years, 9 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) 2012 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 // Unit tests for the TTS API Controller. 5 // Unit tests for the TTS API Controller.
6 6
7 #include "testing/gtest/include/gtest/gtest.h" 7 #include "testing/gtest/include/gtest/gtest.h"
8 8
9 #include "base/values.h" 9 #include "base/values.h"
10 #include "chrome/browser/extensions/extension_tts_api_controller.h" 10 #include "chrome/browser/speech/extension_api/tts_extension_api_controller.h"
11 #include "chrome/browser/extensions/extension_tts_api_platform.h" 11 #include "chrome/browser/speech/extension_api/tts_extension_api_platform.h"
12 12
13 class ExtensionTtsApiControllerTest : public testing::Test { 13 class ExtensionTtsApiControllerTest : public testing::Test {
14 }; 14 };
15 15
16 // Platform Tts implementation that does nothing. 16 // Platform Tts implementation that does nothing.
17 class DummyExtensionTtsPlatformImpl : public ExtensionTtsPlatformImpl { 17 class DummyExtensionTtsPlatformImpl : public ExtensionTtsPlatformImpl {
18 public: 18 public:
19 DummyExtensionTtsPlatformImpl() {} 19 DummyExtensionTtsPlatformImpl() {}
20 virtual ~DummyExtensionTtsPlatformImpl() {} 20 virtual ~DummyExtensionTtsPlatformImpl() {}
21 virtual bool PlatformImplAvailable() { return true; } 21 virtual bool PlatformImplAvailable() { return true; }
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 54
55 Utterance* utterance2 = new Utterance(NULL); 55 Utterance* utterance2 = new Utterance(NULL);
56 utterance2->set_can_enqueue(true); 56 utterance2->set_can_enqueue(true);
57 utterance2->set_src_id(2); 57 utterance2->set_src_id(2);
58 controller->SpeakOrEnqueue(utterance2); 58 controller->SpeakOrEnqueue(utterance2);
59 59
60 // Make sure that deleting the controller when there are pending 60 // Make sure that deleting the controller when there are pending
61 // utterances doesn't cause a crash. 61 // utterances doesn't cause a crash.
62 delete controller; 62 delete controller;
63 } 63 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698