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

Side by Side Diff: chrome/browser/tab_contents/view_source_uitest.cc

Issue 4710001: Split out command IDs from chrome_dll_resource.h. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/app/chrome_dll_resource.h" 5 #include "chrome/app/chrome_command_ids.h"
6 #include "chrome/common/url_constants.h" 6 #include "chrome/common/url_constants.h"
7 #include "chrome/test/automation/browser_proxy.h" 7 #include "chrome/test/automation/browser_proxy.h"
8 #include "chrome/test/automation/tab_proxy.h" 8 #include "chrome/test/automation/tab_proxy.h"
9 #include "chrome/test/ui/ui_test.h" 9 #include "chrome/test/ui/ui_test.h"
10 #include "net/test/test_server.h" 10 #include "net/test/test_server.h"
11 11
12 namespace { 12 namespace {
13 13
14 const char kTestHtml[] = "files/viewsource/test.html"; 14 const char kTestHtml[] = "files/viewsource/test.html";
15 15
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 ASSERT_TRUE(test_server_.Start()); 95 ASSERT_TRUE(test_server_.Start());
96 96
97 GURL url_viewsource(chrome::kViewSourceScheme + std::string(":") + 97 GURL url_viewsource(chrome::kViewSourceScheme + std::string(":") +
98 test_server_.GetURL(kTestHtml).spec()); 98 test_server_.GetURL(kTestHtml).spec());
99 NavigateToURL(url_viewsource); 99 NavigateToURL(url_viewsource);
100 100
101 EXPECT_FALSE(IsMenuCommandEnabled(IDC_VIEW_SOURCE)); 101 EXPECT_FALSE(IsMenuCommandEnabled(IDC_VIEW_SOURCE));
102 } 102 }
103 103
104 } // namespace 104 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698