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

Side by Side Diff: components/omnibox/browser/shortcuts_database_unittest.cc

Issue 1551433002: Switch to standard integer types in components/, part 3 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "components/omnibox/browser/shortcuts_database.h" 5 #include "components/omnibox/browser/shortcuts_database.h"
6 6
7 #include <stddef.h>
8
7 #include "base/files/scoped_temp_dir.h" 9 #include "base/files/scoped_temp_dir.h"
8 #include "base/format_macros.h" 10 #include "base/format_macros.h"
11 #include "base/macros.h"
9 #include "base/path_service.h" 12 #include "base/path_service.h"
10 #include "base/strings/stringprintf.h" 13 #include "base/strings/stringprintf.h"
11 #include "base/strings/utf_string_conversions.h" 14 #include "base/strings/utf_string_conversions.h"
12 #include "base/time/time.h" 15 #include "base/time/time.h"
16 #include "build/build_config.h"
13 #include "components/omnibox/browser/autocomplete_match_type.h" 17 #include "components/omnibox/browser/autocomplete_match_type.h"
14 #include "components/omnibox/browser/shortcuts_constants.h" 18 #include "components/omnibox/browser/shortcuts_constants.h"
15 #include "sql/statement.h" 19 #include "sql/statement.h"
16 #include "sql/test/test_helpers.h" 20 #include "sql/test/test_helpers.h"
17 #include "testing/gtest/include/gtest/gtest.h" 21 #include "testing/gtest/include/gtest/gtest.h"
18 #include "ui/base/page_transition_types.h" 22 #include "ui/base/page_transition_types.h"
19 23
20 using base::ASCIIToUTF16; 24 using base::ASCIIToUTF16;
21 25
22 // Helpers -------------------------------------------------------------------- 26 // Helpers --------------------------------------------------------------------
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 sql::Statement statement(connection.GetUniqueStatement( 292 sql::Statement statement(connection.GetUniqueStatement(
289 "SELECT count(1) FROM omni_box_shortcuts WHERE type in (9, 10, 11, 12)")); 293 "SELECT count(1) FROM omni_box_shortcuts WHERE type in (9, 10, 11, 12)"));
290 ASSERT_TRUE(statement.is_valid()); 294 ASSERT_TRUE(statement.is_valid());
291 while (statement.Step()) 295 while (statement.Step())
292 EXPECT_EQ(0, statement.ColumnInt(0)); 296 EXPECT_EQ(0, statement.ColumnInt(0));
293 EXPECT_TRUE(statement.Succeeded()); 297 EXPECT_TRUE(statement.Succeeded());
294 #if !defined(OS_WIN) 298 #if !defined(OS_WIN)
295 EXPECT_TRUE(temp_dir.Delete()); 299 EXPECT_TRUE(temp_dir.Delete());
296 #endif 300 #endif
297 } 301 }
OLDNEW
« no previous file with comments | « components/omnibox/browser/shortcuts_database.h ('k') | components/omnibox/browser/shortcuts_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698