Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: test/AppInfoJsObject.cpp

Issue 29536739: Noissue - Cleanup. Remove last remnants of old thread code.
Patch Set: Created Sept. 5, 2017, 7:36 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/Thread.cpp ('k') | test/BaseJsTest.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 /* 1 /*
2 * This file is part of Adblock Plus <https://adblockplus.org/>, 2 * This file is part of Adblock Plus <https://adblockplus.org/>,
3 * Copyright (C) 2006-present eyeo GmbH 3 * Copyright (C) 2006-present eyeo GmbH
4 * 4 *
5 * Adblock Plus is free software: you can redistribute it and/or modify 5 * Adblock Plus is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 3 as 6 * it under the terms of the GNU General Public License version 3 as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
8 * 8 *
9 * Adblock Plus is distributed in the hope that it will be useful, 9 * Adblock Plus is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details. 12 * GNU General Public License for more details.
13 * 13 *
14 * You should have received a copy of the GNU General Public License 14 * You should have received a copy of the GNU General Public License
15 * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>. 15 * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>.
16 */ 16 */
17 17
18 #include <AdblockPlus.h>
19 #include <gtest/gtest.h> 18 #include <gtest/gtest.h>
20 #include "BaseJsTest.h" 19 #include "BaseJsTest.h"
21 20
22 TEST(AppInfoJsObjectTest, AllProperties) 21 TEST(AppInfoJsObjectTest, AllProperties)
23 { 22 {
24 AdblockPlus::AppInfo appInfo; 23 AdblockPlus::AppInfo appInfo;
25 appInfo.version = "1"; 24 appInfo.version = "1";
26 appInfo.name = "3"; 25 appInfo.name = "3";
27 appInfo.application = "4"; 26 appInfo.application = "4";
28 appInfo.applicationVersion = "5"; 27 appInfo.applicationVersion = "5";
(...skipping 12 matching lines...) Expand all
41 TEST(AppInfoJsObjectTest, DefaultPropertyValues) 40 TEST(AppInfoJsObjectTest, DefaultPropertyValues)
42 { 41 {
43 AdblockPlus::Platform platform{ThrowingPlatformCreationParameters()}; 42 AdblockPlus::Platform platform{ThrowingPlatformCreationParameters()};
44 ASSERT_EQ("", platform.GetJsEngine().Evaluate("_appInfo.version").AsString()); 43 ASSERT_EQ("", platform.GetJsEngine().Evaluate("_appInfo.version").AsString());
45 ASSERT_EQ("", platform.GetJsEngine().Evaluate("_appInfo.name").AsString()); 44 ASSERT_EQ("", platform.GetJsEngine().Evaluate("_appInfo.name").AsString());
46 ASSERT_EQ("", platform.GetJsEngine().Evaluate("_appInfo.application").AsString ()); 45 ASSERT_EQ("", platform.GetJsEngine().Evaluate("_appInfo.application").AsString ());
47 ASSERT_EQ("", platform.GetJsEngine().Evaluate("_appInfo.applicationVersion").A sString()); 46 ASSERT_EQ("", platform.GetJsEngine().Evaluate("_appInfo.applicationVersion").A sString());
48 ASSERT_EQ("", platform.GetJsEngine().Evaluate("_appInfo.locale").AsString()); 47 ASSERT_EQ("", platform.GetJsEngine().Evaluate("_appInfo.locale").AsString());
49 ASSERT_FALSE(platform.GetJsEngine().Evaluate("_appInfo.developmentBuild").AsBo ol()); 48 ASSERT_FALSE(platform.GetJsEngine().Evaluate("_appInfo.developmentBuild").AsBo ol());
50 } 49 }
OLDNEW
« no previous file with comments | « src/Thread.cpp ('k') | test/BaseJsTest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld