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

Side by Side Diff: chrome/browser/ui/app_list/search/webstore/webstore_provider_browsertest.cc

Issue 23874015: Implement people search. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 <string> 5 #include <string>
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "base/run_loop.h" 11 #include "base/run_loop.h"
12 #include "base/strings/utf_string_conversions.h" 12 #include "base/strings/utf_string_conversions.h"
13 #include "chrome/browser/profiles/profile_manager.h" 13 #include "chrome/browser/profiles/profile_manager.h"
14 #include "chrome/browser/ui/app_list/search/chrome_search_result.h" 14 #include "chrome/browser/ui/app_list/search/chrome_search_result.h"
15 #include "chrome/browser/ui/app_list/search/webstore_provider.h" 15 #include "chrome/browser/ui/app_list/search/webstore/webstore_provider.h"
16 #include "chrome/common/chrome_switches.h" 16 #include "chrome/common/chrome_switches.h"
17 #include "chrome/test/base/in_process_browser_test.h" 17 #include "chrome/test/base/in_process_browser_test.h"
18 #include "content/public/browser/browser_thread.h" 18 #include "content/public/browser/browser_thread.h"
19 #include "net/test/embedded_test_server/embedded_test_server.h" 19 #include "net/test/embedded_test_server/embedded_test_server.h"
20 #include "net/test/embedded_test_server/http_request.h" 20 #include "net/test/embedded_test_server/http_request.h"
21 #include "net/test/embedded_test_server/http_response.h" 21 #include "net/test/embedded_test_server/http_response.h"
22 22
23 using content::BrowserThread; 23 using content::BrowserThread;
24 using net::test_server::BasicHttpResponse; 24 using net::test_server::BasicHttpResponse;
25 using net::test_server::HttpRequest; 25 using net::test_server::HttpRequest;
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 226
227 IN_PROC_BROWSER_TEST_F(WebstoreProviderTest, SearchCache) { 227 IN_PROC_BROWSER_TEST_F(WebstoreProviderTest, SearchCache) {
228 EXPECT_EQ("app1 name", RunQuery("foo", kOneResult)); 228 EXPECT_EQ("app1 name", RunQuery("foo", kOneResult));
229 229
230 // No result is provided but the provider gets the result from the cache. 230 // No result is provided but the provider gets the result from the cache.
231 EXPECT_EQ("app1 name", RunQuery("foo", "")); 231 EXPECT_EQ("app1 name", RunQuery("foo", ""));
232 } 232 }
233 233
234 } // namespace test 234 } // namespace test
235 } // namespace app_list 235 } // namespace app_list
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698