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

Side by Side Diff: sync/test/accounts_client/test_accounts_client_unittest.cc

Issue 557463002: Make base_unittests_apk actually work (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gn-group-datadeps
Patch Set: Rebase Created 6 years, 3 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
« no previous file with comments | « build/toolchain/gcc_toolchain.gni ('k') | testing/android/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "sync/test/accounts_client/test_accounts_client.cc"
10 #include "sync/test/accounts_client/test_accounts_client.h" 9 #include "sync/test/accounts_client/test_accounts_client.h"
11 #include "testing/gmock/include/gmock/gmock.h" 10 #include "testing/gmock/include/gmock/gmock.h"
12 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
13 #include "url/gurl.h" 12 #include "url/gurl.h"
14 13
15 using std::string; 14 using std::string;
16 using std::vector; 15 using std::vector;
17 using testing::_; 16 using testing::_;
18 using testing::DoAll; 17 using testing::DoAll;
19 using testing::Return; 18 using testing::Return;
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 } 89 }
91 90
92 TEST(TestAccountsClientTest, ReleaseAccountSuccess) { 91 TEST(TestAccountsClientTest, ReleaseAccountSuccess) {
93 vector<string> usernames; 92 vector<string> usernames;
94 NoNetworkTestAccountsClient client(kServer, kAccountSpace, usernames); 93 NoNetworkTestAccountsClient client(kServer, kAccountSpace, usernames);
95 EXPECT_CALL(client, SendRequest(_, _)) 94 EXPECT_CALL(client, SendRequest(_, _))
96 .WillOnce(Return(true)); 95 .WillOnce(Return(true));
97 AccountSession session = CreateValidAccountSession(); 96 AccountSession session = CreateValidAccountSession();
98 client.ReleaseAccount(session); 97 client.ReleaseAccount(session);
99 } 98 }
OLDNEW
« no previous file with comments | « build/toolchain/gcc_toolchain.gni ('k') | testing/android/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698