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

Side by Side Diff: content/browser/web_contents/web_contents_view_aura_browsertest.cc

Issue 11746019: Introduce callback interface for running Javascript asynchronously in the renderer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: .insert Created 7 years, 11 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 "content/browser/web_contents/web_contents_view_aura.h" 5 #include "content/browser/web_contents/web_contents_view_aura.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/run_loop.h" 8 #include "base/run_loop.h"
9 #include "base/test/test_timeouts.h" 9 #include "base/test/test_timeouts.h"
10 #include "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
11 #include "base/values.h"
11 #include "content/browser/renderer_host/render_view_host_impl.h" 12 #include "content/browser/renderer_host/render_view_host_impl.h"
12 #include "content/browser/web_contents/navigation_controller_impl.h" 13 #include "content/browser/web_contents/navigation_controller_impl.h"
13 #include "content/browser/web_contents/navigation_entry_impl.h" 14 #include "content/browser/web_contents/navigation_entry_impl.h"
14 #include "content/browser/web_contents/web_contents_impl.h" 15 #include "content/browser/web_contents/web_contents_impl.h"
15 #include "content/public/common/content_switches.h" 16 #include "content/public/common/content_switches.h"
16 #include "content/public/test/browser_test_utils.h" 17 #include "content/public/test/browser_test_utils.h"
17 #include "content/public/test/test_utils.h" 18 #include "content/public/test/test_utils.h"
18 #include "content/shell/shell.h" 19 #include "content/shell/shell.h"
19 #include "content/test/content_browser_test.h" 20 #include "content/test/content_browser_test.h"
20 #include "content/test/content_browser_test_utils.h" 21 #include "content/test/content_browser_test_utils.h"
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
356 string16 actual_title = title_watcher.WaitAndGetTitle(); 357 string16 actual_title = title_watcher.WaitAndGetTitle();
357 EXPECT_EQ(expected_title, actual_title); 358 EXPECT_EQ(expected_title, actual_title);
358 EXPECT_EQ(3, GetCurrentIndex()); 359 EXPECT_EQ(3, GetCurrentIndex());
359 entry = NavigationEntryImpl::FromNavigationEntry( 360 entry = NavigationEntryImpl::FromNavigationEntry(
360 web_contents->GetController().GetEntryAtIndex(4)); 361 web_contents->GetController().GetEntryAtIndex(4));
361 EXPECT_TRUE(entry->screenshot().get()); 362 EXPECT_TRUE(entry->screenshot().get());
362 } 363 }
363 } 364 }
364 365
365 } // namespace content 366 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_view_host_manager_browsertest.cc ('k') | content/public/browser/render_view_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698