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

Side by Side Diff: chrome/browser/extensions/api/extension_action/browser_action_apitest.cc

Issue 13145003: Rewrite std::string("") to std::string(), Linux edition. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Ugh Created 7 years, 8 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 | Annotate | Revision Log
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 "build/build_config.h" 5 #include "build/build_config.h"
6 6
7 #if defined(TOOLKIT_GTK) 7 #if defined(TOOLKIT_GTK)
8 #include <gtk/gtk.h> 8 #include <gtk/gtk.h>
9 #endif 9 #endif
10 10
(...skipping 674 matching lines...) Expand 10 before | Expand all | Expand 10 after
685 685
686 WebContents* tab = 686 WebContents* tab =
687 browser()->tab_strip_model()->GetActiveWebContents(); 687 browser()->tab_strip_model()->GetActiveWebContents();
688 EXPECT_TRUE(tab != NULL); 688 EXPECT_TRUE(tab != NULL);
689 689
690 // Verify that the browser action turned the background color red. 690 // Verify that the browser action turned the background color red.
691 const std::string script = 691 const std::string script =
692 "window.domAutomationController.send(document.body.style." 692 "window.domAutomationController.send(document.body.style."
693 "backgroundColor);"; 693 "backgroundColor);";
694 std::string result; 694 std::string result;
695 const std::string frame_xpath = ""; 695 const std::string frame_xpath;
696 EXPECT_TRUE(content::ExecuteScriptInFrameAndExtractString(tab, 696 EXPECT_TRUE(content::ExecuteScriptInFrameAndExtractString(
697 frame_xpath, 697 tab, frame_xpath, script, &result));
698 script,
699 &result));
700 EXPECT_EQ(result, "red"); 698 EXPECT_EQ(result, "red");
701 } 699 }
702 700
703 } // namespace 701 } // namespace
704 } // namespace extensions 702 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698