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

Side by Side Diff: content/renderer/external_popup_menu_browsertest.cc

Issue 1547073003: Switch to standard integer types in content/renderer/. (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
« no previous file with comments | « content/renderer/external_popup_menu.cc ('k') | content/renderer/fetchers/manifest_fetcher.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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "base/macros.h"
5 #include "base/strings/utf_string_conversions.h" 6 #include "base/strings/utf_string_conversions.h"
6 #include "content/common/frame_messages.h" 7 #include "content/common/frame_messages.h"
7 #include "content/public/test/render_view_test.h" 8 #include "content/public/test/render_view_test.h"
8 #include "content/renderer/render_frame_impl.h" 9 #include "content/renderer/render_frame_impl.h"
9 #include "content/renderer/render_view_impl.h" 10 #include "content/renderer/render_view_impl.h"
10 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
12 #include "third_party/WebKit/public/platform/WebSize.h"
11 #include "third_party/WebKit/public/web/WebView.h" 13 #include "third_party/WebKit/public/web/WebView.h"
12 #include "third_party/WebKit/public/platform/WebSize.h"
13 14
14 // Tests for the external select popup menu (Mac specific). 15 // Tests for the external select popup menu (Mac specific).
15 16
16 namespace content { 17 namespace content {
17 namespace { 18 namespace {
18 19
19 const char* const kSelectID = "mySelect"; 20 const char* const kSelectID = "mySelect";
20 const char* const kEmptySelectID = "myEmptySelect"; 21 const char* const kEmptySelectID = "myEmptySelect";
21 22
22 } // namespace 23 } // namespace
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 ASSERT_EQ(5U, base::get<0>(param).popup_items.size()); 197 ASSERT_EQ(5U, base::get<0>(param).popup_items.size());
197 198
198 // Select index 1 item. This should select item with index 2, 199 // Select index 1 item. This should select item with index 2,
199 // skipping the item with 'display: none' 200 // skipping the item with 'display: none'
200 frame()->OnSelectPopupMenuItem(1); 201 frame()->OnSelectPopupMenuItem(1);
201 202
202 EXPECT_EQ(2, GetSelectedIndex()); 203 EXPECT_EQ(2, GetSelectedIndex());
203 } 204 }
204 205
205 } // namespace content 206 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/external_popup_menu.cc ('k') | content/renderer/fetchers/manifest_fetcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698