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

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

Issue 6735042: Move favicon from TabContents to TabContentsWrapper. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 years, 8 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) 2010 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/utf_string_conversions.h" 5 #include "base/utf_string_conversions.h"
6 #include "chrome/browser/autocomplete/autocomplete_edit.h" 6 #include "chrome/browser/autocomplete/autocomplete_edit.h"
7 #include "chrome/browser/autocomplete/autocomplete_edit_view.h" 7 #include "chrome/browser/autocomplete/autocomplete_edit_view.h"
8 #include "chrome/test/testing_browser_process.h" 8 #include "chrome/test/testing_browser_process.h"
9 #include "chrome/test/testing_profile.h" 9 #include "chrome/test/testing_profile.h"
10 #include "third_party/skia/include/core/SkBitmap.h" 10 #include "third_party/skia/include/core/SkBitmap.h"
11 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 PageTransition::Type transition, 79 PageTransition::Type transition,
80 const GURL& alternate_nav_url) OVERRIDE {} 80 const GURL& alternate_nav_url) OVERRIDE {}
81 virtual void OnChanged() OVERRIDE {} 81 virtual void OnChanged() OVERRIDE {}
82 virtual void OnSelectionBoundsChanged() OVERRIDE {} 82 virtual void OnSelectionBoundsChanged() OVERRIDE {}
83 virtual void OnInputInProgress(bool in_progress) OVERRIDE {} 83 virtual void OnInputInProgress(bool in_progress) OVERRIDE {}
84 virtual void OnKillFocus() OVERRIDE {} 84 virtual void OnKillFocus() OVERRIDE {}
85 virtual void OnSetFocus() OVERRIDE {} 85 virtual void OnSetFocus() OVERRIDE {}
86 virtual SkBitmap GetFavicon() const OVERRIDE { return SkBitmap(); } 86 virtual SkBitmap GetFavicon() const OVERRIDE { return SkBitmap(); }
87 virtual string16 GetTitle() const OVERRIDE { return string16(); } 87 virtual string16 GetTitle() const OVERRIDE { return string16(); }
88 virtual InstantController* GetInstant() OVERRIDE { return NULL; } 88 virtual InstantController* GetInstant() OVERRIDE { return NULL; }
89 virtual TabContentsWrapper* GetTabContentsWrapper() OVERRIDE { 89 virtual TabContentsWrapper* GetTabContentsWrapper() const OVERRIDE {
90 return NULL; 90 return NULL;
91 } 91 }
92 92
93 private: 93 private:
94 DISALLOW_COPY_AND_ASSIGN(TestingAutocompleteEditController); 94 DISALLOW_COPY_AND_ASSIGN(TestingAutocompleteEditController);
95 }; 95 };
96 96
97 } 97 }
98 98
99 typedef testing::Test AutocompleteEditTest; 99 typedef testing::Test AutocompleteEditTest;
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 GURL url; 150 GURL url;
151 bool write_url; 151 bool write_url;
152 model.AdjustTextForCopy(input[i].sel_start, input[i].is_all_selected, 152 model.AdjustTextForCopy(input[i].sel_start, input[i].is_all_selected,
153 &result, &url, &write_url); 153 &result, &url, &write_url);
154 EXPECT_EQ(ASCIIToUTF16(input[i].expected_output), result) << "@: " << i; 154 EXPECT_EQ(ASCIIToUTF16(input[i].expected_output), result) << "@: " << i;
155 EXPECT_EQ(input[i].write_url, write_url) << " @" << i; 155 EXPECT_EQ(input[i].write_url, write_url) << " @" << i;
156 if (write_url) 156 if (write_url)
157 EXPECT_EQ(input[i].expected_url, url.spec()) << " @" << i; 157 EXPECT_EQ(input[i].expected_url, url.spec()) << " @" << i;
158 } 158 }
159 } 159 }
OLDNEW
« no previous file with comments | « chrome/browser/autocomplete/autocomplete_edit.h ('k') | chrome/browser/chromeos/wm_overview_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698