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

Side by Side Diff: test/AppInfoJsObject.cpp

Issue 10198022: Pass application data into libadblockplus (Closed)
Patch Set: Created April 12, 2013, 1:23 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
OLDNEW
(Empty)
1 #include <AdblockPlus.h>
2 #include <gtest/gtest.h>
3
4 TEST(AppInfoJsObjectTest, AllProperties)
5 {
6 AdblockPlus::AppInfo appInfo;
7 appInfo.addonId = "1";
8 appInfo.addonVersion = "2";
9 appInfo.addonRoot = "3";
10 appInfo.addonName = "4";
11 appInfo.application = "5";
12 AdblockPlus::JsEngine jsEngine(appInfo, 0, 0, 0);
13 ASSERT_EQ("1", jsEngine.Evaluate("_appInfo.addonID"));
14 ASSERT_EQ("2", jsEngine.Evaluate("_appInfo.addonVersion"));
15 ASSERT_EQ("3", jsEngine.Evaluate("_appInfo.addonRoot"));
16 ASSERT_EQ("4", jsEngine.Evaluate("_appInfo.addonName"));
17 ASSERT_EQ("5", jsEngine.Evaluate("_appInfo.application"));
18 }
OLDNEW
« lib/info.js ('K') | « src/JsEngine.cpp ('k') | test/ConsoleJsObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld