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

Side by Side Diff: chrome/browser/supervised_user/permission_request_creator_apiary_unittest.cc

Issue 629603002: replace OVERRIDE and FINAL with override and final in chrome/browser/[r-z]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master Created 6 years, 2 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "base/json/json_writer.h" 5 #include "base/json/json_writer.h"
6 #include "base/memory/scoped_ptr.h" 6 #include "base/memory/scoped_ptr.h"
7 #include "base/message_loop/message_loop.h" 7 #include "base/message_loop/message_loop.h"
8 #include "base/values.h" 8 #include "base/values.h"
9 #include "chrome/browser/signin/fake_profile_oauth2_token_service.h" 9 #include "chrome/browser/signin/fake_profile_oauth2_token_service.h"
10 #include "chrome/browser/supervised_user/permission_request_creator_apiary.h" 10 #include "chrome/browser/supervised_user/permission_request_creator_apiary.h"
(...skipping 16 matching lines...) Expand all
27 base::JSONWriter::Write(&dict, &result); 27 base::JSONWriter::Write(&dict, &result);
28 return result; 28 return result;
29 } 29 }
30 30
31 class FakeSupervisedUserSigninManagerWrapper 31 class FakeSupervisedUserSigninManagerWrapper
32 : public SupervisedUserSigninManagerWrapper { 32 : public SupervisedUserSigninManagerWrapper {
33 public: 33 public:
34 FakeSupervisedUserSigninManagerWrapper() 34 FakeSupervisedUserSigninManagerWrapper()
35 : SupervisedUserSigninManagerWrapper(NULL, NULL) {} 35 : SupervisedUserSigninManagerWrapper(NULL, NULL) {}
36 36
37 virtual std::string GetEffectiveUsername() const OVERRIDE { 37 virtual std::string GetEffectiveUsername() const override {
38 return kAccountId; 38 return kAccountId;
39 } 39 }
40 virtual std::string GetAccountIdToUse() const OVERRIDE { 40 virtual std::string GetAccountIdToUse() const override {
41 return kAccountId; 41 return kAccountId;
42 } 42 }
43 virtual std::string GetSyncScopeToUse() const OVERRIDE { 43 virtual std::string GetSyncScopeToUse() const override {
44 return kApiScope; 44 return kApiScope;
45 } 45 }
46 }; 46 };
47 47
48 } // namespace 48 } // namespace
49 49
50 class PermissionRequestCreatorApiaryTest : public testing::Test { 50 class PermissionRequestCreatorApiaryTest : public testing::Test {
51 public: 51 public:
52 PermissionRequestCreatorApiaryTest() 52 PermissionRequestCreatorApiaryTest()
53 : request_context_(new net::TestURLRequestContextGetter( 53 : request_context_(new net::TestURLRequestContextGetter(
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 150
151 // We should have gotten a request for an access token. 151 // We should have gotten a request for an access token.
152 EXPECT_EQ(1U, token_service_.GetPendingRequests().size()); 152 EXPECT_EQ(1U, token_service_.GetPendingRequests().size());
153 153
154 IssueAccessTokens(); 154 IssueAccessTokens();
155 155
156 // Our callback should get called on an error. 156 // Our callback should get called on an error.
157 EXPECT_CALL(*this, OnRequestCreated(false)); 157 EXPECT_CALL(*this, OnRequestCreated(false));
158 SendFailedResponse(0); 158 SendFailedResponse(0);
159 } 159 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698