Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(187)

Side by Side Diff: chrome/browser/webdata/web_database_unittest.cc

Issue 7995: Move Time, TimeDelta and TimeTicks into namespace base. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <windows.h> 5 #include <windows.h>
6 6
7 #include "base/file_util.h" 7 #include "base/file_util.h"
8 #include "base/path_service.h" 8 #include "base/path_service.h"
9 #include "base/string_util.h" 9 #include "base/string_util.h"
10 #include "base/values.h" 10 #include "base/values.h"
11 #include "chrome/browser/template_url.h" 11 #include "chrome/browser/template_url.h"
12 #include "chrome/browser/webdata/web_database.h" 12 #include "chrome/browser/webdata/web_database.h"
13 #include "chrome/common/chrome_paths.h" 13 #include "chrome/common/chrome_paths.h"
14 #include "chrome/common/stl_util-inl.h" 14 #include "chrome/common/stl_util-inl.h"
15 #include "skia/include/SkBitmap.h" 15 #include "skia/include/SkBitmap.h"
16 #include "testing/gtest/include/gtest/gtest.h" 16 #include "testing/gtest/include/gtest/gtest.h"
17 #include "webkit/glue/password_form.h" 17 #include "webkit/glue/password_form.h"
18 18
19 using base::Time;
20 using base::TimeDelta;
21
19 class WebDatabaseTest : public testing::Test { 22 class WebDatabaseTest : public testing::Test {
20 protected: 23 protected:
21 24
22 virtual void SetUp() { 25 virtual void SetUp() {
23 wchar_t b[32]; 26 wchar_t b[32];
24 _itow_s(static_cast<int>(GetTickCount()), b, arraysize(b), 10); 27 _itow_s(static_cast<int>(GetTickCount()), b, arraysize(b), 10);
25 28
26 PathService::Get(chrome::DIR_TEST_DATA, &file_); 29 PathService::Get(chrome::DIR_TEST_DATA, &file_);
27 file_ += file_util::kPathSeparator; 30 file_ += file_util::kPathSeparator;
28 file_ += L"TestWebDatabase"; 31 file_ += L"TestWebDatabase";
(...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after
559 ASSERT_EQ(32, images[1].width()); 562 ASSERT_EQ(32, images[1].width());
560 ASSERT_EQ(32, images[1].height()); 563 ASSERT_EQ(32, images[1].height());
561 } else { 564 } else {
562 ASSERT_EQ(32, images[0].width()); 565 ASSERT_EQ(32, images[0].width());
563 ASSERT_EQ(32, images[0].height()); 566 ASSERT_EQ(32, images[0].height());
564 ASSERT_EQ(16, images[1].width()); 567 ASSERT_EQ(16, images[1].width());
565 ASSERT_EQ(16, images[1].height()); 568 ASSERT_EQ(16, images[1].height());
566 } 569 }
567 } 570 }
568 571
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698