| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 <vector> | 5 #include <vector> |
| 6 | 6 |
| 7 #include "base/json/json_writer.h" | 7 #include "base/json/json_writer.h" |
| 8 #include "base/values.h" | 8 #include "base/values.h" |
| 9 #include "googleurl/src/gurl.h" | |
| 10 #include "sync/test/accounts_client/test_accounts_client.cc" | 9 #include "sync/test/accounts_client/test_accounts_client.cc" |
| 11 #include "sync/test/accounts_client/test_accounts_client.h" | 10 #include "sync/test/accounts_client/test_accounts_client.h" |
| 12 #include "testing/gmock/include/gmock/gmock.h" | 11 #include "testing/gmock/include/gmock/gmock.h" |
| 13 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
| 13 #include "url/gurl.h" |
| 14 | 14 |
| 15 using std::string; | 15 using std::string; |
| 16 using std::vector; | 16 using std::vector; |
| 17 using testing::_; | 17 using testing::_; |
| 18 using testing::DoAll; | 18 using testing::DoAll; |
| 19 using testing::Return; | 19 using testing::Return; |
| 20 using testing::SetArgPointee; | 20 using testing::SetArgPointee; |
| 21 | 21 |
| 22 namespace { | 22 namespace { |
| 23 static const string kServer = "https://test-account-service"; | 23 static const string kServer = "https://test-account-service"; |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 } | 90 } |
| 91 | 91 |
| 92 TEST(TestAccountsClientTest, ReleaseAccountSuccess) { | 92 TEST(TestAccountsClientTest, ReleaseAccountSuccess) { |
| 93 vector<string> usernames; | 93 vector<string> usernames; |
| 94 NoNetworkTestAccountsClient client(kServer, kAccountSpace, usernames); | 94 NoNetworkTestAccountsClient client(kServer, kAccountSpace, usernames); |
| 95 EXPECT_CALL(client, SendRequest(_, _)) | 95 EXPECT_CALL(client, SendRequest(_, _)) |
| 96 .WillOnce(Return(true)); | 96 .WillOnce(Return(true)); |
| 97 AccountSession session = CreateValidAccountSession(); | 97 AccountSession session = CreateValidAccountSession(); |
| 98 client.ReleaseAccount(session); | 98 client.ReleaseAccount(session); |
| 99 } | 99 } |
| OLD | NEW |