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

Unified Diff: test/Util_Test.cpp

Issue 5171515343503360: Issue #41 - Bring method of determining IE version up to date (Closed)
Patch Set: Second version Created June 25, 2014, 6:53 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« src/shared/Utils.cpp ('K') | « src/shared/Utils.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/Util_Test.cpp
===================================================================
--- a/test/Util_Test.cpp
+++ b/test/Util_Test.cpp
@@ -1,6 +1,7 @@
#include <gtest/gtest.h>
#include "../src/plugin/PluginUtil.h"
#include "../src/plugin/PluginDebug.h"
+#include "../src/shared/Utils.h"
class Util_Test
: public ::testing::Test
@@ -618,3 +619,26 @@
truncate_test( length_one_hundred_and_one, truncated );
}
+//=========================================================================================
+// shared/Utils.cpp
+//=========================================================================================
+
+//----------------------------------
+// IE Version
+//----------------------------------
+
+TEST( Shared_Util_Test, IE_version_0 )
+{
+ std::wstring version = ABP::IE::installed_version_string();
+ ASSERT_NE( version, L"" );
+ // Replace with local version prefix as appropriate
+ //EXPECT_TRUE( ABP::util::begins_with( version, L"11." ) );
+}
+
+TEST( Shared_Util_Test, IE_version_1 )
+{
+ int version = ABP::IE::installed_major_version();
+ ASSERT_NE( version, 0 );
+ // Replace with local major version
+ //EXPECT_EQ( version, 11 );
+}
« src/shared/Utils.cpp ('K') | « src/shared/Utils.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld