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

Side by Side Diff: chrome/common/extensions/manifest_tests/extension_manifests_tts_unittest.cc

Issue 10375021: Move Extension into extensions namespace (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Take 6 Created 8 years, 7 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
OLDNEW
1 // Copyright (c) 2012 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 #include "chrome/common/extensions/manifest_tests/extension_manifest_test.h" 5 #include "chrome/common/extensions/manifest_tests/extension_manifest_test.h"
6 6
7 #include "chrome/common/extensions/extension_manifest_constants.h" 7 #include "chrome/common/extensions/extension_manifest_constants.h"
8 #include "testing/gtest/include/gtest/gtest.h" 8 #include "testing/gtest/include/gtest/gtest.h"
9 9
10 namespace errors = extension_manifest_errors; 10 namespace errors = extension_manifest_errors;
(...skipping 15 matching lines...) Expand all
26 Testcase("tts_engine_invalid_7.json", 26 Testcase("tts_engine_invalid_7.json",
27 errors::kInvalidTtsVoicesGender), 27 errors::kInvalidTtsVoicesGender),
28 Testcase("tts_engine_invalid_8.json", 28 Testcase("tts_engine_invalid_8.json",
29 errors::kInvalidTtsVoicesEventTypes), 29 errors::kInvalidTtsVoicesEventTypes),
30 Testcase("tts_engine_invalid_9.json", 30 Testcase("tts_engine_invalid_9.json",
31 errors::kInvalidTtsVoicesEventTypes) 31 errors::kInvalidTtsVoicesEventTypes)
32 }; 32 };
33 RunTestcases(testcases, arraysize(testcases), 33 RunTestcases(testcases, arraysize(testcases),
34 EXPECT_TYPE_ERROR); 34 EXPECT_TYPE_ERROR);
35 35
36 scoped_refptr<Extension> extension( 36 scoped_refptr<extensions::Extension> extension(
37 LoadAndExpectSuccess("tts_engine_valid.json")); 37 LoadAndExpectSuccess("tts_engine_valid.json"));
38 38
39 ASSERT_EQ(1u, extension->tts_voices().size()); 39 ASSERT_EQ(1u, extension->tts_voices().size());
40 EXPECT_EQ("name", extension->tts_voices()[0].voice_name); 40 EXPECT_EQ("name", extension->tts_voices()[0].voice_name);
41 EXPECT_EQ("en-US", extension->tts_voices()[0].lang); 41 EXPECT_EQ("en-US", extension->tts_voices()[0].lang);
42 EXPECT_EQ("female", extension->tts_voices()[0].gender); 42 EXPECT_EQ("female", extension->tts_voices()[0].gender);
43 EXPECT_EQ(3U, extension->tts_voices()[0].event_types.size()); 43 EXPECT_EQ(3U, extension->tts_voices()[0].event_types.size());
44 } 44 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698