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

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

Issue 8437002: Move BrowserThread to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: A few updates. Created 9 years, 1 month 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 "chrome/browser/autocomplete/shortcuts_provider.h" 5 #include "chrome/browser/autocomplete/shortcuts_provider.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <functional> 8 #include <functional>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 11 matching lines...) Expand all
22 #include "chrome/browser/history/url_database.h" 22 #include "chrome/browser/history/url_database.h"
23 #include "chrome/browser/prefs/pref_service.h" 23 #include "chrome/browser/prefs/pref_service.h"
24 #include "chrome/common/pref_names.h" 24 #include "chrome/common/pref_names.h"
25 #include "chrome/test/base/testing_profile.h" 25 #include "chrome/test/base/testing_profile.h"
26 #include "content/test/test_browser_thread.h" 26 #include "content/test/test_browser_thread.h"
27 #include "testing/gtest/include/gtest/gtest.h" 27 #include "testing/gtest/include/gtest/gtest.h"
28 28
29 using base::Time; 29 using base::Time;
30 using base::TimeDelta; 30 using base::TimeDelta;
31 31
32 using content::BrowserThread;
33
32 namespace { 34 namespace {
33 35
34 struct TestShortcutInfo { 36 struct TestShortcutInfo {
35 std::string guid; 37 std::string guid;
36 std::string url; 38 std::string url;
37 std::string title; // The text that orginally was searched for. 39 std::string title; // The text that orginally was searched for.
38 std::string contents; 40 std::string contents;
39 std::string contents_class; 41 std::string contents_class;
40 std::string description; 42 std::string description;
41 std::string description_class; 43 std::string description_class;
(...skipping 585 matching lines...) Expand 10 before | Expand all | Expand 10 after
627 match.contents = ASCIIToUTF16(shortcuts_to_test_delete[2].contents); 629 match.contents = ASCIIToUTF16(shortcuts_to_test_delete[2].contents);
628 match.description = ASCIIToUTF16(shortcuts_to_test_delete[2].description); 630 match.description = ASCIIToUTF16(shortcuts_to_test_delete[2].description);
629 631
630 provider_->DeleteMatch(match); 632 provider_->DeleteMatch(match);
631 EXPECT_EQ(original_shortcuts_count, 633 EXPECT_EQ(original_shortcuts_count,
632 provider_->shortcuts_backend_->shortcuts_map().size()); 634 provider_->shortcuts_backend_->shortcuts_map().size());
633 EXPECT_TRUE(provider_->shortcuts_backend_->shortcuts_map().end() == 635 EXPECT_TRUE(provider_->shortcuts_backend_->shortcuts_map().end() ==
634 provider_->shortcuts_backend_->shortcuts_map().find( 636 provider_->shortcuts_backend_->shortcuts_map().find(
635 ASCIIToUTF16("delete"))); 637 ASCIIToUTF16("delete")));
636 } 638 }
OLDNEW
« no previous file with comments | « chrome/browser/autocomplete/search_provider_unittest.cc ('k') | chrome/browser/autocomplete_history_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698