Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6847937
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T00:48:21+00:00 2026-05-27T00:48:21+00:00

Basically I’m trying to start some unit tests in google test but not sure

  • 0

Basically I’m trying to start some unit tests in google test but not sure how to go about it. I have been given some code to try and test but I have no idea how to go about doing this. This is some of the code I need to test? Where should I start? Thanks in advance for any help.

void CCRC32::FullCRC(const unsigned char *sData, unsigned long ulDataLength, unsigned long *ulOutCRC)
{
    *(unsigned long *)ulOutCRC = 0xffffffff; //Initilaize the CRC.
    this->PartialCRC(ulOutCRC, sData, ulDataLength);
    *(unsigned long *)ulOutCRC ^= 0xffffffff; //Finalize the CRC.
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T00:48:21+00:00Added an answer on May 27, 2026 at 12:48 am

    I am not sure if you have seen this before or not, but surely give it a go. I am pretty sure you should get the basic understanding covered in this simple tutorial. Additionally, there are lots of answers already provided on stackoverflow and the best one in my opinion is: Setup Googletest. Regardless, do go through the answer provided by kjella and try to implement it in your code. Hopefully, it should work the way you expect it to.

    Note: Whoever is trying to carry out this similar implementation with Microsoft Visual Studio .Net 2003, the Google Test Framework libraries automatically defaults the Runtime Library to ‘Single-threaded Debug‘ for Debug mode and ‘Single-threaded‘ for Release Mode and as far as I have tried out, the option for changing it from the Code Generation isn’t available. So, please make sure you choose Single-threaded option as your runtime library in your project. Other than that, this simple and short tutorial works perfect!

    Good luck!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Basically I have read the git merge conflicts guide, and I'm not sure it
Basically I have some code to check a specific directory to see if an
Basically, I have a JTextPane to hold some text which I wish to style.
Basically I have this server app I built in vc#, and for some reason
Basically I have some sort of third party software running on Windows 7 which
Basically I would like to have some dictionary that is an abstaction over legacy
Basically I am trying to restart a service from a php web page. Here
Basically, I'm trying to tap into the Soap pipeline in .NET 2.0 - I
Basically I'm trying to accomplish the same thing that mailto:bgates@microsoft.com does in Internet Explorer
Basically, what I'm trying to create is a page of div tags, each has

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.