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

Side by Side Diff: chrome/browser/android/contextualsearch/contextual_search_delegate_unittest.cc

Issue 1542413002: Switch to standard integer types in chrome/browser/, part 1 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "chrome/browser/android/contextualsearch/contextual_search_delegate.h" 5 #include "chrome/browser/android/contextualsearch/contextual_search_delegate.h"
6 6
7 #include <stddef.h>
8
9 #include "base/macros.h"
7 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
8 #include "base/message_loop/message_loop.h" 11 #include "base/message_loop/message_loop.h"
9 #include "base/strings/utf_string_conversions.h" 12 #include "base/strings/utf_string_conversions.h"
10 #include "base/values.h" 13 #include "base/values.h"
11 #include "chrome/browser/android/contextualsearch/contextual_search_context.h" 14 #include "chrome/browser/android/contextualsearch/contextual_search_context.h"
12 #include "chrome/browser/android/contextualsearch/resolved_search_term.h" 15 #include "chrome/browser/android/contextualsearch/resolved_search_term.h"
13 #include "components/search_engines/template_url_service.h" 16 #include "components/search_engines/template_url_service.h"
14 #include "net/base/escape.h" 17 #include "net/base/escape.h"
15 #include "net/url_request/test_url_fetcher_factory.h" 18 #include "net/url_request/test_url_fetcher_factory.h"
16 #include "net/url_request/url_request_test_util.h" 19 #include "net/url_request/url_request_test_util.h"
(...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after
485 fetcher()->delegate()->OnURLFetchComplete(fetcher()); 488 fetcher()->delegate()->OnURLFetchComplete(fetcher());
486 489
487 EXPECT_FALSE(is_invalid()); 490 EXPECT_FALSE(is_invalid());
488 EXPECT_EQ(200, response_code()); 491 EXPECT_EQ(200, response_code());
489 EXPECT_EQ("obama", search_term()); 492 EXPECT_EQ("obama", search_term());
490 EXPECT_EQ("obama", display_text()); 493 EXPECT_EQ("obama", display_text());
491 EXPECT_TRUE(do_prevent_preload()); 494 EXPECT_TRUE(do_prevent_preload());
492 EXPECT_TRUE(DoesRequestContainOurSpecificBasePage()); 495 EXPECT_TRUE(DoesRequestContainOurSpecificBasePage());
493 EXPECT_EQ("de", context_language()); 496 EXPECT_EQ("de", context_language());
494 } 497 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698