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

Unified Diff: chrome_frame/test/automation_client_mock.cc

Issue 890005: Add a command line flag to disable infobars. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome_frame/delete_chrome_history.cc ('k') | chrome_frame/test/chrome_frame_automation_mock.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome_frame/test/automation_client_mock.cc
===================================================================
--- chrome_frame/test/automation_client_mock.cc (revision 42751)
+++ chrome_frame/test/automation_client_mock.cc (working copy)
@@ -101,8 +101,18 @@
.Times(1)
.WillOnce(QUIT_LOOP(loop));
- EXPECT_TRUE(client->Initialize(&cfd, timeout, false, profile_path, L"",
- false));
+ ChromeFrameLaunchParams clp = {
+ timeout,
+ GURL(),
+ GURL(),
+ profile_path,
+ profile_path.BaseName().value(),
+ L"",
+ false,
+ false,
+ false
+ };
+ EXPECT_TRUE(client->Initialize(&cfd, clp));
loop.RunFor(10);
client->Uninitialize();
}
@@ -128,8 +138,18 @@
EXPECT_CALL(cfd, OnAutomationServerLaunchFailed(_, _))
.Times(0);
- EXPECT_TRUE(client->Initialize(&cfd, timeout, false, profile_path, L"",
- false));
+ ChromeFrameLaunchParams clp = {
+ timeout,
+ GURL(),
+ GURL(),
+ profile_path,
+ profile_path.BaseName().value(),
+ L"",
+ false,
+ false,
+ false
+ };
+ EXPECT_TRUE(client->Initialize(&cfd, clp));
loop.RunFor(11);
client->Uninitialize();
@@ -170,8 +190,18 @@
.WillOnce(QUIT_LOOP(loop));
}
- EXPECT_TRUE(client->Initialize(&cfd, timeout, false, profile_path, L"",
- false));
+ ChromeFrameLaunchParams clp = {
+ timeout,
+ GURL(),
+ GURL(),
+ profile_path,
+ profile_path.BaseName().value(),
+ L"",
+ false,
+ false,
+ false
+ };
+ EXPECT_TRUE(client->Initialize(&cfd, clp));
loop.RunFor(10);
client->Uninitialize();
client = NULL;
@@ -211,8 +241,18 @@
.Times(1)
.WillOnce(QUIT_LOOP_SOON(loop, 2));
- EXPECT_TRUE(client->Initialize(&cfd, 10000, false, profile_path, L"",
- false));
+ ChromeFrameLaunchParams clp = {
+ 10000,
+ GURL(),
+ GURL(),
+ profile_path,
+ profile_path.BaseName().value(),
+ L"",
+ false,
+ false,
+ false
+ };
+ EXPECT_TRUE(client->Initialize(&cfd, clp));
loop.RunFor(10);
client->Uninitialize();
@@ -245,8 +285,18 @@
EXPECT_CALL(proxy_, CancelAsync(_)).Times(testing::AnyNumber());
// Here we go!
- EXPECT_TRUE(client_->Initialize(&cfd_, timeout, false, profile_path_, L"",
- false));
+ ChromeFrameLaunchParams clp = {
+ timeout,
+ GURL(),
+ GURL(),
+ profile_path_,
+ profile_path_.BaseName().value(),
+ L"",
+ false,
+ false,
+ false
+ };
+ EXPECT_TRUE(client_->Initialize(&cfd_, clp));
loop_.RunFor(10);
client_->Uninitialize();
}
@@ -271,8 +321,18 @@
Set_CFD_LaunchFailed(AUTOMATION_CREATE_TAB_FAILED);
// Here we go!
- EXPECT_TRUE(client_->Initialize(&cfd_, timeout_, false, profile_path_, L"",
- false));
+ ChromeFrameLaunchParams clp = {
+ timeout_,
+ GURL(),
+ GURL(),
+ profile_path_,
+ profile_path_.BaseName().value(),
+ L"",
+ false,
+ false,
+ false
+ };
+ EXPECT_TRUE(client_->Initialize(&cfd_, clp));
loop_.RunFor(4);
client_->Uninitialize();
}
« no previous file with comments | « chrome_frame/delete_chrome_history.cc ('k') | chrome_frame/test/chrome_frame_automation_mock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698