summaryrefslogtreecommitdiffstats
path: root/net/base/cookie_monster_unittest.cc
diff options
context:
space:
mode:
authordeanm@google.com <deanm@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-01 12:17:05 +0000
committerdeanm@google.com <deanm@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-01 12:17:05 +0000
commit500ff05a853aa86b283d72c9843da90d124b9baf (patch)
treee0b4260752667bb3b0f15fd5c8d6ca43d7e33fc6 /net/base/cookie_monster_unittest.cc
parentb51e508b882540209a404d6374fac4e6c6875bf3 (diff)
downloadchromium_src-500ff05a853aa86b283d72c9843da90d124b9baf.zip
chromium_src-500ff05a853aa86b283d72c9843da90d124b9baf.tar.gz
chromium_src-500ff05a853aa86b283d72c9843da90d124b9baf.tar.bz2
Cleanup some old unused code from the cookie monster unittest.
TBR=maruel git-svn-id: svn://svn.chromium.org/chrome/trunk/src@237 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/cookie_monster_unittest.cc')
-rw-r--r--net/base/cookie_monster_unittest.cc19
1 files changed, 0 insertions, 19 deletions
diff --git a/net/base/cookie_monster_unittest.cc b/net/base/cookie_monster_unittest.cc
index 484f661..9de1464 100644
--- a/net/base/cookie_monster_unittest.cc
+++ b/net/base/cookie_monster_unittest.cc
@@ -27,7 +27,6 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-#include <windows.h>
#include <time.h>
#include <string>
@@ -496,24 +495,6 @@ TEST(CookieMonsterTest, HttpOnlyTest) {
url_google, net::CookieMonster::INCLUDE_HTTPONLY), "A=B");
}
-// From: http://support.microsoft.com/kb/167296.
-static void UnixTimeToFileTime(time_t t, LPFILETIME pft) {
- uint64 ll;
-
- ll = Int32x32To64(t, 10000000) + 116444736000000000;
- pft->dwLowDateTime = (DWORD)ll;
- pft->dwHighDateTime = (DWORD)(ll >> 32);
-}
-
-static uint64 UnixTimeToUTC(time_t t) {
- FILETIME ftime;
- LARGE_INTEGER li;
- UnixTimeToFileTime(t, &ftime);
- li.LowPart = ftime.dwLowDateTime;
- li.HighPart = ftime.dwHighDateTime;
- return li.QuadPart;
-}
-
TEST(CookieMonsterTest, TestCookieDateParsing) {
const struct {
const char* str;