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

Side by Side Diff: chrome/browser/autocomplete/autocomplete_edit_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/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_profile.h" 9 #include "chrome/test/base/testing_profile.h"
9 #include "chrome/test/testing_browser_process.h"
10 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
11 #include "third_party/skia/include/core/SkBitmap.h" 11 #include "third_party/skia/include/core/SkBitmap.h"
12 12
13 namespace { 13 namespace {
14 14
15 class TestingOmniboxView : public OmniboxView { 15 class TestingOmniboxView : public OmniboxView {
16 public: 16 public:
17 TestingOmniboxView() {} 17 TestingOmniboxView() {}
18 18
19 virtual AutocompleteEditModel* model() { return NULL; } 19 virtual AutocompleteEditModel* model() { return NULL; }
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 GURL url; 148 GURL url;
149 bool write_url; 149 bool write_url;
150 model.AdjustTextForCopy(input[i].sel_start, input[i].is_all_selected, 150 model.AdjustTextForCopy(input[i].sel_start, input[i].is_all_selected,
151 &result, &url, &write_url); 151 &result, &url, &write_url);
152 EXPECT_EQ(ASCIIToUTF16(input[i].expected_output), result) << "@: " << i; 152 EXPECT_EQ(ASCIIToUTF16(input[i].expected_output), result) << "@: " << i;
153 EXPECT_EQ(input[i].write_url, write_url) << " @" << i; 153 EXPECT_EQ(input[i].write_url, write_url) << " @" << i;
154 if (write_url) 154 if (write_url)
155 EXPECT_EQ(input[i].expected_url, url.spec()) << " @" << i; 155 EXPECT_EQ(input[i].expected_url, url.spec()) << " @" << i;
156 } 156 }
157 } 157 }
OLDNEW
« no previous file with comments | « chrome/browser/app_controller_mac_unittest.mm ('k') | chrome/browser/autocomplete/autocomplete_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698