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

Side by Side Diff: chrome/browser/policy/cloud/user_policy_signin_service_unittest.cc

Issue 29303007: android: Enable -Wunused-const-variable. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 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 | Annotate | Revision Log
OLDNEW
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 "base/message_loop/message_loop.h" 5 #include "base/message_loop/message_loop.h"
6 #include "base/message_loop/message_loop_proxy.h" 6 #include "base/message_loop/message_loop_proxy.h"
7 #include "base/prefs/pref_service.h" 7 #include "base/prefs/pref_service.h"
8 #include "base/run_loop.h" 8 #include "base/run_loop.h"
9 #include "base/time/time.h" 9 #include "base/time/time.h"
10 #include "chrome/browser/browser_process.h" 10 #include "chrome/browser/browser_process.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 using testing::AnyNumber; 51 using testing::AnyNumber;
52 using testing::Mock; 52 using testing::Mock;
53 using testing::_; 53 using testing::_;
54 54
55 namespace policy { 55 namespace policy {
56 56
57 namespace { 57 namespace {
58 58
59 const char kTestUser[] = "testuser@test.com"; 59 const char kTestUser[] = "testuser@test.com";
60 60
61 #if !defined(OS_ANDROID)
61 const char kValidTokenResponse[] = 62 const char kValidTokenResponse[] =
62 "{" 63 "{"
63 " \"access_token\": \"at1\"," 64 " \"access_token\": \"at1\","
64 " \"expires_in\": 3600," 65 " \"expires_in\": 3600,"
65 " \"token_type\": \"Bearer\"" 66 " \"token_type\": \"Bearer\""
66 "}"; 67 "}";
68 #endif
67 69
68 const char kHostedDomainResponse[] = 70 const char kHostedDomainResponse[] =
69 "{" 71 "{"
70 " \"hd\": \"test.com\"" 72 " \"hd\": \"test.com\""
71 "}"; 73 "}";
72 74
73 class SigninManagerFake : public FakeSigninManager { 75 class SigninManagerFake : public FakeSigninManager {
74 public: 76 public:
75 explicit SigninManagerFake(Profile* profile) 77 explicit SigninManagerFake(Profile* profile)
76 : FakeSigninManager(profile) { 78 : FakeSigninManager(profile) {
(...skipping 699 matching lines...) Expand 10 before | Expand all | Expand 10 after
776 base::RunLoop().RunUntilIdle(); 778 base::RunLoop().RunUntilIdle();
777 EXPECT_FALSE(manager_->IsClientRegistered()); 779 EXPECT_FALSE(manager_->IsClientRegistered());
778 #if !defined(OS_ANDROID) 780 #if !defined(OS_ANDROID)
779 EXPECT_FALSE(signin_manager_->IsSignoutProhibited()); 781 EXPECT_FALSE(signin_manager_->IsSignoutProhibited());
780 #endif 782 #endif
781 } 783 }
782 784
783 } // namespace 785 } // namespace
784 786
785 } // namespace policy 787 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698