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

Side by Side Diff: chrome/test/live_sync/live_sync_test.cc

Issue 7481009: Test birtday error. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: For review Created 9 years, 5 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/test/live_sync/live_sync_test.h" 5 #include "chrome/test/live_sync/live_sync_test.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 492 matching lines...) Expand 10 before | Expand all | Expand 10 after
503 it != model_types.end(); ++it) { 503 it != model_types.end(); ++it) {
504 path.append(base::StringPrintf("%ctype=%d", joiner, 504 path.append(base::StringPrintf("%ctype=%d", joiner,
505 syncable::GetExtensionFieldNumberFromModelType(*it))); 505 syncable::GetExtensionFieldNumberFromModelType(*it)));
506 joiner = '&'; 506 joiner = '&';
507 } 507 }
508 ui_test_utils::NavigateToURL(browser(), sync_server_.GetURL(path)); 508 ui_test_utils::NavigateToURL(browser(), sync_server_.GetURL(path));
509 ASSERT_EQ(ASCIIToUTF16("Migration: 200"), 509 ASSERT_EQ(ASCIIToUTF16("Migration: 200"),
510 browser()->GetSelectedTabContents()->GetTitle()); 510 browser()->GetSelectedTabContents()->GetTitle());
511 } 511 }
512 512
513 void LiveSyncTest::TriggerBirthdayError() {
514 ASSERT_TRUE(ServerSupportsErrorTriggering());
515 std::string path = "chromiumsync/birthdayerror";
516 ui_test_utils::NavigateToURL(browser(), sync_server_.GetURL(path));
517 ASSERT_EQ(ASCIIToUTF16("Birthday error"),
518 browser()->GetSelectedTabContents()->GetTitle());
519 }
520
513 void LiveSyncTest::SetProxyConfig(net::URLRequestContextGetter* context_getter, 521 void LiveSyncTest::SetProxyConfig(net::URLRequestContextGetter* context_getter,
514 const net::ProxyConfig& proxy_config) { 522 const net::ProxyConfig& proxy_config) {
515 base::WaitableEvent done(false, false); 523 base::WaitableEvent done(false, false);
516 BrowserThread::PostTask( 524 BrowserThread::PostTask(
517 BrowserThread::IO, 525 BrowserThread::IO,
518 FROM_HERE, 526 FROM_HERE,
519 new SetProxyConfigTask(&done, 527 new SetProxyConfigTask(&done,
520 context_getter, 528 context_getter,
521 proxy_config)); 529 proxy_config));
522 done.Wait(); 530 done.Wait();
523 } 531 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698