| OLD | NEW |
| 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/basictypes.h" | 5 #include "base/basictypes.h" |
| 6 #include "base/message_loop.h" | 6 #include "base/message_loop.h" |
| 7 #include "base/utf_string_conversions.h" | 7 #include "base/utf_string_conversions.h" |
| 8 #include "chrome/test/testing_browser_process_test.h" | 8 #include "chrome/test/base/testing_browser_process_test.h" |
| 9 #include "chrome/browser/autocomplete/autocomplete_match.h" | 9 #include "chrome/browser/autocomplete/autocomplete_match.h" |
| 10 #include "chrome/browser/autocomplete/extension_app_provider.h" | 10 #include "chrome/browser/autocomplete/extension_app_provider.h" |
| 11 #include "chrome/browser/history/history.h" | 11 #include "chrome/browser/history/history.h" |
| 12 #include "chrome/browser/history/url_database.h" | 12 #include "chrome/browser/history/url_database.h" |
| 13 #include "chrome/test/base/testing_profile.h" | 13 #include "chrome/test/base/testing_profile.h" |
| 14 | 14 |
| 15 class ExtensionAppProviderTest : public TestingBrowserProcessTest { | 15 class ExtensionAppProviderTest : public TestingBrowserProcessTest { |
| 16 protected: | 16 protected: |
| 17 struct test_data { | 17 struct test_data { |
| 18 const string16 input; | 18 const string16 input; |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 GURL("http://fdsa/") }}, | 98 GURL("http://fdsa/") }}, |
| 99 // The string 'co' appears in one extension app. | 99 // The string 'co' appears in one extension app. |
| 100 {ASCIIToUTF16("co"), 1, { GURL("http://asdf/") }}, | 100 {ASCIIToUTF16("co"), 1, { GURL("http://asdf/") }}, |
| 101 // Try with URL matching. | 101 // Try with URL matching. |
| 102 {ASCIIToUTF16("http://asdf/"), 1, { GURL("http://asdf/") }}, | 102 {ASCIIToUTF16("http://asdf/"), 1, { GURL("http://asdf/") }}, |
| 103 {ASCIIToUTF16("http://fdsa/"), 1, { GURL("http://fdsa/") }}, | 103 {ASCIIToUTF16("http://fdsa/"), 1, { GURL("http://fdsa/") }}, |
| 104 }; | 104 }; |
| 105 | 105 |
| 106 RunTest(edit_cases, ARRAYSIZE_UNSAFE(edit_cases)); | 106 RunTest(edit_cases, ARRAYSIZE_UNSAFE(edit_cases)); |
| 107 } | 107 } |
| OLD | NEW |