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

Unified Diff: chrome/browser/autocomplete/autocomplete_unittest.cc

Issue 7811006: Add full support for filesystem URLs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added TODO for markusheintz Created 8 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/autocomplete/autocomplete_unittest.cc
diff --git a/chrome/browser/autocomplete/autocomplete_unittest.cc b/chrome/browser/autocomplete/autocomplete_unittest.cc
index f0c7dab361017d988ab14f6a8e7b9f65653198dd..6fcf436875012c7c6ef2b0ab205808b50e317015 100644
--- a/chrome/browser/autocomplete/autocomplete_unittest.cc
+++ b/chrome/browser/autocomplete/autocomplete_unittest.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -373,6 +373,12 @@ TEST_F(AutocompleteTest, InputType) {
{ ASCIIToUTF16("[2001:dB8::1]"), AutocompleteInput::URL },
{ ASCIIToUTF16("192.168.0.256"), AutocompleteInput::QUERY },
{ ASCIIToUTF16("[foo.com]"), AutocompleteInput::QUERY },
+ { ASCIIToUTF16("filesystem:http://a.com/t/bar"), AutocompleteInput::URL },
+ { ASCIIToUTF16("filesystem:http:foo"), AutocompleteInput::URL },
+ { ASCIIToUTF16("filesystem:file://"), AutocompleteInput::URL },
+ { ASCIIToUTF16("filesystem:http"), AutocompleteInput::URL },
+ { ASCIIToUTF16("filesystem:"), AutocompleteInput::URL },
+ { ASCIIToUTF16("ftp:"), AutocompleteInput::URL },
};
for (size_t i = 0; i < ARRAYSIZE_UNSAFE(input_cases); ++i) {

Powered by Google App Engine
This is Rietveld 408576698