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

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

Issue 48105: Remove unneeded uses of base/ref_counted.h. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 9 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
« no previous file with comments | « base/waitable_event.h ('k') | chrome/browser/autocomplete/history_url_provider.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/message_loop.h" 5 #include "base/message_loop.h"
6 #include "base/ref_counted.h"
7 #include "base/string_util.h" 6 #include "base/string_util.h"
8 #include "chrome/browser/autocomplete/autocomplete.h" 7 #include "chrome/browser/autocomplete/autocomplete.h"
9 #include "chrome/common/notification_registrar.h" 8 #include "chrome/common/notification_registrar.h"
10 #include "chrome/common/notification_service.h" 9 #include "chrome/common/notification_service.h"
11 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
12 11
13 // identifiers for known autocomplete providers 12 // identifiers for known autocomplete providers
14 #define HISTORY_IDENTIFIER L"Chrome:History" 13 #define HISTORY_IDENTIFIER L"Chrome:History"
15 #define SEARCH_IDENTIFIER L"google.com/websearch/en" 14 #define SEARCH_IDENTIFIER L"google.com/websearch/en"
16 15
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 265
267 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(cases); ++i) { 266 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(cases); ++i) {
268 m1.relevance = cases[i].r1; 267 m1.relevance = cases[i].r1;
269 m2.relevance = cases[i].r2; 268 m2.relevance = cases[i].r2;
270 EXPECT_EQ(cases[i].expected_result, 269 EXPECT_EQ(cases[i].expected_result,
271 AutocompleteMatch::MoreRelevant(m1, m2)); 270 AutocompleteMatch::MoreRelevant(m1, m2));
272 } 271 }
273 } 272 }
274 273
275 } // namespace 274 } // namespace
OLDNEW
« no previous file with comments | « base/waitable_event.h ('k') | chrome/browser/autocomplete/history_url_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698