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

Side by Side Diff: content/public/test/browser_test_utils.cc

Issue 2892953006: WIP POC blob transport over mojo
Patch Set: pass mojo blobs over ipc Created 3 years, 7 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 "content/public/test/browser_test_utils.h" 5 #include "content/public/test/browser_test_utils.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <tuple> 8 #include <tuple>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 1406 matching lines...) Expand 10 before | Expand all | Expand 10 after
1417 // will then be suppressed, since the NavigationEntry's title hasn't changed. 1417 // will then be suppressed, since the NavigationEntry's title hasn't changed.
1418 TestTitle(); 1418 TestTitle();
1419 } 1419 }
1420 1420
1421 void TitleWatcher::TitleWasSet(NavigationEntry* entry, bool explicit_set) { 1421 void TitleWatcher::TitleWasSet(NavigationEntry* entry, bool explicit_set) {
1422 TestTitle(); 1422 TestTitle();
1423 } 1423 }
1424 1424
1425 void TitleWatcher::TestTitle() { 1425 void TitleWatcher::TestTitle() {
1426 const base::string16& current_title = web_contents()->GetTitle(); 1426 const base::string16& current_title = web_contents()->GetTitle();
1427 LOG(INFO) << "Title: " << current_title << " " << web_contents()->IsLoading();
1427 if (base::ContainsValue(expected_titles_, current_title)) { 1428 if (base::ContainsValue(expected_titles_, current_title)) {
1428 observed_title_ = current_title; 1429 observed_title_ = current_title;
1429 run_loop_.Quit(); 1430 run_loop_.Quit();
1430 } 1431 }
1431 } 1432 }
1432 1433
1433 RenderProcessHostWatcher::RenderProcessHostWatcher( 1434 RenderProcessHostWatcher::RenderProcessHostWatcher(
1434 RenderProcessHost* render_process_host, WatchType type) 1435 RenderProcessHost* render_process_host, WatchType type)
1435 : render_process_host_(render_process_host), 1436 : render_process_host_(render_process_host),
1436 type_(type), 1437 type_(type),
(...skipping 612 matching lines...) Expand 10 before | Expand all | Expand 10 after
2049 bool user_gesture, 2050 bool user_gesture,
2050 bool last_unlocked_by_target, 2051 bool last_unlocked_by_target,
2051 bool privileged) { 2052 bool privileged) {
2052 IPC::IpcSecurityTestUtil::PwnMessageReceived( 2053 IPC::IpcSecurityTestUtil::PwnMessageReceived(
2053 process->GetChannel(), 2054 process->GetChannel(),
2054 ViewHostMsg_LockMouse(routing_id, user_gesture, last_unlocked_by_target, 2055 ViewHostMsg_LockMouse(routing_id, user_gesture, last_unlocked_by_target,
2055 privileged)); 2056 privileged));
2056 } 2057 }
2057 2058
2058 } // namespace content 2059 } // namespace content
OLDNEW
« no previous file with comments | « content/public/app/mojo/content_browser_manifest.json ('k') | content/renderer/renderer_blink_platform_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698