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

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

Issue 178193005: Move render_view_context_menu.* related files out of tab_contents. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: context_menu->renderer_context_menu for disambiguation Created 6 years, 9 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 "chrome/browser/tab_contents/spellchecker_submenu_observer.h" 5 #include "chrome/browser/renderer_context_menu/spellchecker_submenu_observer.h"
6 6
7 #include "base/prefs/pref_service.h" 7 #include "base/prefs/pref_service.h"
8 #include "base/strings/utf_string_conversions.h" 8 #include "base/strings/utf_string_conversions.h"
9 #include "chrome/app/chrome_command_ids.h" 9 #include "chrome/app/chrome_command_ids.h"
10 #include "chrome/browser/tab_contents/render_view_context_menu.h" 10 #include "chrome/browser/renderer_context_menu/render_view_context_menu.h"
11 #include "chrome/browser/tab_contents/render_view_context_menu_observer.h" 11 #include "chrome/browser/renderer_context_menu/render_view_context_menu_observer .h"
12 #include "chrome/common/pref_names.h" 12 #include "chrome/common/pref_names.h"
13 #include "chrome/test/base/in_process_browser_test.h" 13 #include "chrome/test/base/in_process_browser_test.h"
14 #include "chrome/test/base/testing_profile.h" 14 #include "chrome/test/base/testing_profile.h"
15 15
16 using content::RenderViewHost; 16 using content::RenderViewHost;
17 using content::WebContents; 17 using content::WebContents;
18 18
19 namespace { 19 namespace {
20 20
21 // A mock context menu used in this test. This class overrides virtual methods 21 // A mock context menu used in this test. This class overrides virtual methods
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 EXPECT_TRUE(menu->IsCommandIdChecked(IDC_CHECK_SPELLING_WHILE_TYPING)); 148 EXPECT_TRUE(menu->IsCommandIdChecked(IDC_CHECK_SPELLING_WHILE_TYPING));
149 149
150 // Select this item and verify that the "Check Spelling While Typing" item is 150 // Select this item and verify that the "Check Spelling While Typing" item is
151 // not checked. Also, verify that the value of "browser.enable_spellchecking" 151 // not checked. Also, verify that the value of "browser.enable_spellchecking"
152 // is now false. 152 // is now false.
153 menu->ExecuteCommand(IDC_CHECK_SPELLING_WHILE_TYPING, 0); 153 menu->ExecuteCommand(IDC_CHECK_SPELLING_WHILE_TYPING, 0);
154 EXPECT_FALSE( 154 EXPECT_FALSE(
155 menu->GetPrefs()->GetBoolean(prefs::kEnableContinuousSpellcheck)); 155 menu->GetPrefs()->GetBoolean(prefs::kEnableContinuousSpellcheck));
156 EXPECT_FALSE(menu->IsCommandIdChecked(IDC_CHECK_SPELLING_WHILE_TYPING)); 156 EXPECT_FALSE(menu->IsCommandIdChecked(IDC_CHECK_SPELLING_WHILE_TYPING));
157 } 157 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698