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

Side by Side Diff: chrome/browser/renderer_context_menu/spelling_menu_observer_browsertest.cc

Issue 1548133002: Switch to standard integer types in chrome/browser/, part 3 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 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/browser/renderer_context_menu/spelling_menu_observer.h" 5 #include "chrome/browser/renderer_context_menu/spelling_menu_observer.h"
6 6
7 #include <stddef.h>
8
7 #include <vector> 9 #include <vector>
8 10
11 #include "base/macros.h"
9 #include "base/prefs/pref_service.h" 12 #include "base/prefs/pref_service.h"
10 #include "base/strings/utf_string_conversions.h" 13 #include "base/strings/utf_string_conversions.h"
11 #include "chrome/app/chrome_command_ids.h" 14 #include "chrome/app/chrome_command_ids.h"
12 #include "chrome/browser/renderer_context_menu/render_view_context_menu.h" 15 #include "chrome/browser/renderer_context_menu/render_view_context_menu.h"
13 #include "chrome/browser/spellchecker/spelling_service_client.h" 16 #include "chrome/browser/spellchecker/spelling_service_client.h"
14 #include "chrome/common/pref_names.h" 17 #include "chrome/common/pref_names.h"
15 #include "chrome/test/base/in_process_browser_test.h" 18 #include "chrome/test/base/in_process_browser_test.h"
16 #include "chrome/test/base/testing_profile.h" 19 #include "chrome/test/base/testing_profile.h"
17 #include "components/renderer_context_menu/render_view_context_menu_observer.h" 20 #include "components/renderer_context_menu/render_view_context_menu_observer.h"
18 21
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after
446 ForceSuggestMode(); 449 ForceSuggestMode();
447 InitMenu("asdfkj", NULL); 450 InitMenu("asdfkj", NULL);
448 451
449 // Should have at least 2 entries. Separator, suggestion. 452 // Should have at least 2 entries. Separator, suggestion.
450 EXPECT_LT(2U, menu()->GetMenuSize()); 453 EXPECT_LT(2U, menu()->GetMenuSize());
451 menu()->GetMenuItem(0, &item); 454 menu()->GetMenuItem(0, &item);
452 EXPECT_EQ(-1, item.command_id); 455 EXPECT_EQ(-1, item.command_id);
453 menu()->GetMenuItem(1, &item); 456 menu()->GetMenuItem(1, &item);
454 EXPECT_EQ(IDC_CONTENT_CONTEXT_SPELLING_SUGGESTION, item.command_id); 457 EXPECT_EQ(IDC_CONTENT_CONTEXT_SPELLING_SUGGESTION, item.command_id);
455 } 458 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698