| OLD | NEW |
| 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 "chrome/browser/sync/test/integration/sync_test.h" | 5 #include "chrome/browser/sync/test/integration/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/bind.h" | 10 #include "base/bind.h" |
| (...skipping 896 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 907 syncer::GetSpecificsFieldNumberFromModelType(it.Get()))); | 907 syncer::GetSpecificsFieldNumberFromModelType(it.Get()))); |
| 908 joiner = '&'; | 908 joiner = '&'; |
| 909 } | 909 } |
| 910 ui_test_utils::NavigateToURL(browser(), sync_server_.GetURL(path)); | 910 ui_test_utils::NavigateToURL(browser(), sync_server_.GetURL(path)); |
| 911 ASSERT_EQ("Migration: 200", | 911 ASSERT_EQ("Migration: 200", |
| 912 base::UTF16ToASCII( | 912 base::UTF16ToASCII( |
| 913 browser()->tab_strip_model()->GetActiveWebContents()-> | 913 browser()->tab_strip_model()->GetActiveWebContents()-> |
| 914 GetTitle())); | 914 GetTitle())); |
| 915 } | 915 } |
| 916 | 916 |
| 917 void SyncTest::TriggerBirthdayError() { | |
| 918 ASSERT_TRUE(ServerSupportsErrorTriggering()); | |
| 919 std::string path = "chromiumsync/birthdayerror"; | |
| 920 ui_test_utils::NavigateToURL(browser(), sync_server_.GetURL(path)); | |
| 921 ASSERT_EQ("Birthday error", | |
| 922 base::UTF16ToASCII( | |
| 923 browser()->tab_strip_model()->GetActiveWebContents()-> | |
| 924 GetTitle())); | |
| 925 } | |
| 926 | |
| 927 void SyncTest::TriggerTransientError() { | 917 void SyncTest::TriggerTransientError() { |
| 928 ASSERT_TRUE(ServerSupportsErrorTriggering()); | 918 ASSERT_TRUE(ServerSupportsErrorTriggering()); |
| 929 std::string path = "chromiumsync/transienterror"; | 919 std::string path = "chromiumsync/transienterror"; |
| 930 ui_test_utils::NavigateToURL(browser(), sync_server_.GetURL(path)); | 920 ui_test_utils::NavigateToURL(browser(), sync_server_.GetURL(path)); |
| 931 ASSERT_EQ("Transient error", | 921 ASSERT_EQ("Transient error", |
| 932 base::UTF16ToASCII( | 922 base::UTF16ToASCII( |
| 933 browser()->tab_strip_model()->GetActiveWebContents()-> | 923 browser()->tab_strip_model()->GetActiveWebContents()-> |
| 934 GetTitle())); | 924 GetTitle())); |
| 935 } | 925 } |
| 936 | 926 |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1049 BrowserThread::PostTask( | 1039 BrowserThread::PostTask( |
| 1050 BrowserThread::IO, FROM_HERE, | 1040 BrowserThread::IO, FROM_HERE, |
| 1051 base::Bind(&SetProxyConfigCallback, &done, | 1041 base::Bind(&SetProxyConfigCallback, &done, |
| 1052 make_scoped_refptr(context_getter), proxy_config)); | 1042 make_scoped_refptr(context_getter), proxy_config)); |
| 1053 done.Wait(); | 1043 done.Wait(); |
| 1054 } | 1044 } |
| 1055 | 1045 |
| 1056 fake_server::FakeServer* SyncTest::GetFakeServer() const { | 1046 fake_server::FakeServer* SyncTest::GetFakeServer() const { |
| 1057 return fake_server_.get(); | 1047 return fake_server_.get(); |
| 1058 } | 1048 } |
| OLD | NEW |