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

Side by Side Diff: chrome/common/instant_types_unittest.cc

Issue 1548153002: Switch to standard integer types in chrome/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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
« no previous file with comments | « chrome/common/instant_types.h ('k') | chrome/common/local_discovery/local_discovery_messages.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/common/instant_types.h" 5 #include "chrome/common/instant_types.h"
6 6
7 #include <stddef.h>
8
9 #include "base/macros.h"
7 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
8 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
9 12
10 struct TestData { 13 struct TestData {
11 const char* search_request_url; 14 const char* search_request_url;
12 const char* expected_search_query; 15 const char* expected_search_query;
13 const char* expected_original_query; 16 const char* expected_original_query;
14 const char* expected_rlz_param; 17 const char* expected_rlz_param;
15 const char* expected_input_encoding; 18 const char* expected_input_encoding;
16 const char* expected_assisted_query_stats; 19 const char* expected_assisted_query_stats;
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 EXPECT_EQ(cases[i].expected_rlz_param, 70 EXPECT_EQ(cases[i].expected_rlz_param,
68 base::UTF16ToASCII(params.rlz_parameter_value)) << 71 base::UTF16ToASCII(params.rlz_parameter_value)) <<
69 "For index: " << i; 72 "For index: " << i;
70 EXPECT_EQ(cases[i].expected_input_encoding, 73 EXPECT_EQ(cases[i].expected_input_encoding,
71 base::UTF16ToASCII(params.input_encoding)) << "For index: " << i; 74 base::UTF16ToASCII(params.input_encoding)) << "For index: " << i;
72 EXPECT_EQ(cases[i].expected_assisted_query_stats, 75 EXPECT_EQ(cases[i].expected_assisted_query_stats,
73 base::UTF16ToASCII(params.assisted_query_stats)) << 76 base::UTF16ToASCII(params.assisted_query_stats)) <<
74 "For index: " << i; 77 "For index: " << i;
75 } 78 }
76 } 79 }
OLDNEW
« no previous file with comments | « chrome/common/instant_types.h ('k') | chrome/common/local_discovery/local_discovery_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698