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

Side by Side Diff: chrome/browser/autocomplete/history_url_provider_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 "base/file_util.h" 5 #include "base/file_util.h"
6 #include "base/message_loop.h" 6 #include "base/message_loop.h"
7 #include "base/path_service.h" 7 #include "base/path_service.h"
8 #include "chrome/browser/autocomplete/history_url_provider.h" 8 #include "chrome/browser/autocomplete/history_url_provider.h"
9 #include "chrome/browser/bookmarks/bookmark_model.h" 9 #include "chrome/browser/bookmarks/bookmark_model.h"
10 #include "chrome/browser/history/history.h" 10 #include "chrome/browser/history/history.h"
11 #include "chrome/test/testing_profile.h" 11 #include "chrome/test/testing_profile.h"
12 #include "testing/gtest/include/gtest/gtest.h" 12 #include "testing/gtest/include/gtest/gtest.h"
13 13
14 using base::Time;
15 using base::TimeDelta;
16
14 struct TestURLInfo { 17 struct TestURLInfo {
15 std::wstring url; 18 std::wstring url;
16 std::wstring title; 19 std::wstring title;
17 int visit_count; 20 int visit_count;
18 int typed_count; 21 int typed_count;
19 bool starred; 22 bool starred;
20 }; 23 };
21 24
22 // Contents of the test database. 25 // Contents of the test database.
23 static TestURLInfo test_db[] = { 26 static TestURLInfo test_db[] = {
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 L"http://bogussite.com/c", 340 L"http://bogussite.com/c",
338 }; 341 };
339 RunTest(input_2, std::wstring(), false, fixup_2, arraysize(fixup_2)); 342 RunTest(input_2, std::wstring(), false, fixup_2, arraysize(fixup_2));
340 EXPECT_EQ(input_2.length(), matches_[0].inline_autocomplete_offset); 343 EXPECT_EQ(input_2.length(), matches_[0].inline_autocomplete_offset);
341 344
342 // Adding a TLD to a small number like "56" should result in "www.56.com" 345 // Adding a TLD to a small number like "56" should result in "www.56.com"
343 // rather than "0.0.0.56.com". 346 // rather than "0.0.0.56.com".
344 std::wstring fixup_3[] = {L"http://www.56.com/"}; 347 std::wstring fixup_3[] = {L"http://www.56.com/"};
345 RunTest(L"56", L"com", true, fixup_3, arraysize(fixup_3)); 348 RunTest(L"56", L"com", true, fixup_3, arraysize(fixup_3));
346 } 349 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698