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

Side by Side Diff: test/Util_Test.cpp

Issue 5171515343503360: Issue #41 - Bring method of determining IE version up to date (Closed)
Patch Set: Created June 21, 2014, 8:25 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
« src/shared/Utils.cpp ('K') | « src/shared/Utils.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #include <gtest/gtest.h> 1 #include <gtest/gtest.h>
2 #include "../src/plugin/PluginUtil.h" 2 #include "../src/plugin/PluginUtil.h"
3 #include "../src/plugin/PluginDebug.h" 3 #include "../src/plugin/PluginDebug.h"
4 #include "../src/shared/Utils.h"
4 5
5 class Util_Test 6 class Util_Test
6 : public ::testing::Test 7 : public ::testing::Test
7 { 8 {
8 }; 9 };
9 10
10 namespace 11 namespace
11 { 12 {
12 void equal_ci_same( std::wstring a, std::wstring b ) 13 void equal_ci_same( std::wstring a, std::wstring b )
13 { 14 {
(...skipping 597 matching lines...) Expand 10 before | Expand all | Expand 10 after
611 612
612 TEST( Debug_Util_Test, truncate_02 ) 613 TEST( Debug_Util_Test, truncate_02 )
613 { 614 {
614 std::wstring length_one_hundred_and_one( 101, L'=' ); 615 std::wstring length_one_hundred_and_one( 101, L'=' );
615 std::wstring truncated( 67, L'=' ); 616 std::wstring truncated( 67, L'=' );
616 truncated += L"..."; 617 truncated += L"...";
617 truncated += std::wstring( 30, L'=' ); 618 truncated += std::wstring( 30, L'=' );
618 truncate_test( length_one_hundred_and_one, truncated ); 619 truncate_test( length_one_hundred_and_one, truncated );
619 } 620 }
620 621
622 //============================================================================== ===========
623 // shared/Utils.cpp
624 //============================================================================== ===========
625
626 //----------------------------------
627 // IE Version
628 //----------------------------------
629
630 TEST( Shared_Util_Test, IE_version_0 )
631 {
632 std::wstring version = ABP::IE::installed_version_string();
633 ASSERT_NE( version, L"" );
634 // Replace with local version prefix as appropriate
635 //EXPECT_TRUE( ABP::util::begins_with( version, L"11." ) );
636 }
637
638 TEST( Shared_Util_Test, IE_version_1 )
639 {
640 int version = ABP::IE::installed_major_version();
641 ASSERT_NE( version, 0 );
642 // Replace with local major version
643 //EXPECT_EQ( version, 11 );
644 }
OLDNEW
« 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