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

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

Issue 10533046: TabContentsWrapper -> TabContents, part 4. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: compiling is good Created 8 years, 6 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/ui/omnibox/omnibox_view.h" 7 #include "chrome/browser/ui/omnibox/omnibox_view.h"
8 #include "chrome/test/base/testing_browser_process.h" 8 #include "chrome/test/base/testing_browser_process.h"
9 #include "chrome/test/base/testing_profile.h" 9 #include "chrome/test/base/testing_profile.h"
10 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 content::PageTransition transition, 89 content::PageTransition transition,
90 const GURL& alternate_nav_url) OVERRIDE {} 90 const GURL& alternate_nav_url) OVERRIDE {}
91 virtual void OnChanged() OVERRIDE {} 91 virtual void OnChanged() OVERRIDE {}
92 virtual void OnSelectionBoundsChanged() OVERRIDE {} 92 virtual void OnSelectionBoundsChanged() OVERRIDE {}
93 virtual void OnInputInProgress(bool in_progress) OVERRIDE {} 93 virtual void OnInputInProgress(bool in_progress) OVERRIDE {}
94 virtual void OnKillFocus() OVERRIDE {} 94 virtual void OnKillFocus() OVERRIDE {}
95 virtual void OnSetFocus() OVERRIDE {} 95 virtual void OnSetFocus() OVERRIDE {}
96 virtual SkBitmap GetFavicon() const OVERRIDE { return SkBitmap(); } 96 virtual SkBitmap GetFavicon() const OVERRIDE { return SkBitmap(); }
97 virtual string16 GetTitle() const OVERRIDE { return string16(); } 97 virtual string16 GetTitle() const OVERRIDE { return string16(); }
98 virtual InstantController* GetInstant() OVERRIDE { return NULL; } 98 virtual InstantController* GetInstant() OVERRIDE { return NULL; }
99 virtual TabContentsWrapper* GetTabContentsWrapper() const OVERRIDE { 99 virtual TabContents* GetTabContents() const OVERRIDE {
100 return NULL; 100 return NULL;
101 } 101 }
102 102
103 private: 103 private:
104 DISALLOW_COPY_AND_ASSIGN(TestingAutocompleteEditController); 104 DISALLOW_COPY_AND_ASSIGN(TestingAutocompleteEditController);
105 }; 105 };
106 106
107 } // namespace 107 } // namespace
108 108
109 class AutocompleteEditTest : public ::testing::Test {}; 109 class AutocompleteEditTest : public ::testing::Test {};
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 GURL url; 170 GURL url;
171 bool write_url; 171 bool write_url;
172 model.AdjustTextForCopy(input[i].sel_start, input[i].is_all_selected, 172 model.AdjustTextForCopy(input[i].sel_start, input[i].is_all_selected,
173 &result, &url, &write_url); 173 &result, &url, &write_url);
174 EXPECT_EQ(ASCIIToUTF16(input[i].expected_output), result) << "@: " << i; 174 EXPECT_EQ(ASCIIToUTF16(input[i].expected_output), result) << "@: " << i;
175 EXPECT_EQ(input[i].write_url, write_url) << " @" << i; 175 EXPECT_EQ(input[i].write_url, write_url) << " @" << i;
176 if (write_url) 176 if (write_url)
177 EXPECT_EQ(input[i].expected_url, url.spec()) << " @" << i; 177 EXPECT_EQ(input[i].expected_url, url.spec()) << " @" << i;
178 } 178 }
179 } 179 }
OLDNEW
« no previous file with comments | « chrome/browser/autocomplete/autocomplete_edit.cc ('k') | chrome/browser/chromeos/login/simple_web_view_dialog.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698