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

Side by Side Diff: chrome/browser/ui/views/omnibox/omnibox_view_views_unittest.cc

Issue 1545153002: Switch to standard integer types in chrome/browser/ui/views/. (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 (c) 2015 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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/ui/views/omnibox/omnibox_view_views.h" 5 #include "chrome/browser/ui/views/omnibox/omnibox_view_views.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"
11 #include "build/build_config.h"
8 #include "chrome/browser/command_updater.h" 12 #include "chrome/browser/command_updater.h"
9 #include "chrome/browser/ui/omnibox/chrome_omnibox_edit_controller.h" 13 #include "chrome/browser/ui/omnibox/chrome_omnibox_edit_controller.h"
10 #include "chrome/test/base/testing_profile.h" 14 #include "chrome/test/base/testing_profile.h"
11 #include "content/public/test/test_browser_thread_bundle.h" 15 #include "content/public/test/test_browser_thread_bundle.h"
12 #include "testing/gtest/include/gtest/gtest.h" 16 #include "testing/gtest/include/gtest/gtest.h"
13 #include "ui/events/event_utils.h" 17 #include "ui/events/event_utils.h"
14 #include "ui/events/keycodes/dom/dom_code.h" 18 #include "ui/events/keycodes/dom/dom_code.h"
15 19
16 #if defined(OS_CHROMEOS) 20 #if defined(OS_CHROMEOS)
17 #include "chrome/browser/chromeos/input_method/input_method_configuration.h" 21 #include "chrome/browser/chromeos/input_method/input_method_configuration.h"
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 ui::DomKey::FromCharacter('b'), ui::EventTimeForNow()); 133 ui::DomKey::FromCharacter('b'), ui::EventTimeForNow());
130 omnibox_textfield()->InsertChar(char_event); 134 omnibox_textfield()->InsertChar(char_event);
131 omnibox_view()->CheckUpdatePopupCallInfo( 135 omnibox_view()->CheckUpdatePopupCallInfo(
132 2, base::ASCIIToUTF16("ab"), gfx::Range(2)); 136 2, base::ASCIIToUTF16("ab"), gfx::Range(2));
133 137
134 ui::KeyEvent pressed(ui::ET_KEY_PRESSED, ui::VKEY_BACK, 0); 138 ui::KeyEvent pressed(ui::ET_KEY_PRESSED, ui::VKEY_BACK, 0);
135 omnibox_textfield()->OnKeyPressed(pressed); 139 omnibox_textfield()->OnKeyPressed(pressed);
136 omnibox_view()->CheckUpdatePopupCallInfo( 140 omnibox_view()->CheckUpdatePopupCallInfo(
137 3, base::ASCIIToUTF16("a"), gfx::Range(1)); 141 3, base::ASCIIToUTF16("a"), gfx::Range(1));
138 } 142 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698