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

Side by Side Diff: chrome/browser/autocomplete/history_url_provider_unittest.cc

Issue 7616019: Reorganize chrome/test, part #9 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "base/string_util.h" 8 #include "base/string_util.h"
9 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 #include "chrome/browser/autocomplete/autocomplete_match.h" 10 #include "chrome/browser/autocomplete/autocomplete_match.h"
11 #include "chrome/browser/autocomplete/history_url_provider.h" 11 #include "chrome/browser/autocomplete/history_url_provider.h"
12 #include "chrome/browser/history/history.h" 12 #include "chrome/browser/history/history.h"
13 #include "chrome/test/base/testing_browser_process.h"
14 #include "chrome/test/base/testing_browser_process_test.h"
13 #include "chrome/test/base/testing_profile.h" 15 #include "chrome/test/base/testing_profile.h"
14 #include "chrome/test/testing_browser_process.h"
15 #include "chrome/test/testing_browser_process_test.h"
16 #include "content/browser/browser_thread.h" 16 #include "content/browser/browser_thread.h"
17 #include "testing/gtest/include/gtest/gtest.h" 17 #include "testing/gtest/include/gtest/gtest.h"
18 18
19 using base::Time; 19 using base::Time;
20 using base::TimeDelta; 20 using base::TimeDelta;
21 21
22 struct TestURLInfo { 22 struct TestURLInfo {
23 std::string url; 23 std::string url;
24 std::string title; 24 std::string title;
25 int visit_count; 25 int visit_count;
(...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after
499 false, true, AutocompleteInput::ALL_MATCHES); 499 false, true, AutocompleteInput::ALL_MATCHES);
500 autocomplete_->Start(input, false); 500 autocomplete_->Start(input, false);
501 if (!autocomplete_->done()) 501 if (!autocomplete_->done())
502 MessageLoop::current()->Run(); 502 MessageLoop::current()->Run();
503 503
504 // None of the matches should attempt to autocomplete. 504 // None of the matches should attempt to autocomplete.
505 matches_ = autocomplete_->matches(); 505 matches_ = autocomplete_->matches();
506 for (size_t i = 0; i < matches_.size(); ++i) 506 for (size_t i = 0; i < matches_.size(); ++i)
507 EXPECT_EQ(string16::npos, matches_[i].inline_autocomplete_offset); 507 EXPECT_EQ(string16::npos, matches_[i].inline_autocomplete_offset);
508 } 508 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698