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

Side by Side Diff: chrome/browser/chromeos/login/login_utils_browsertest.cc

Issue 29263007: linux and chromeos: Turn on -Wunused-const-variable. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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
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 "chrome/browser/chromeos/login/login_utils.h" 5 #include "chrome/browser/chromeos/login/login_utils.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/files/scoped_temp_dir.h" 10 #include "base/files/scoped_temp_dir.h"
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 77
78 namespace em = enterprise_management; 78 namespace em = enterprise_management;
79 79
80 using ::testing::DoAll; 80 using ::testing::DoAll;
81 using ::testing::Return; 81 using ::testing::Return;
82 using ::testing::SaveArg; 82 using ::testing::SaveArg;
83 using ::testing::SetArgPointee; 83 using ::testing::SetArgPointee;
84 using ::testing::_; 84 using ::testing::_;
85 using content::BrowserThread; 85 using content::BrowserThread;
86 86
87 const char kTrue[] = "true";
88 const char kFalse[] = "false";
89 const char kDomain[] = "domain.com"; 87 const char kDomain[] = "domain.com";
90 const char kUsername[] = "user@domain.com"; 88 const char kUsername[] = "user@domain.com";
91 const char kMode[] = "enterprise";
92 const char kDeviceId[] = "100200300"; 89 const char kDeviceId[] = "100200300";
93 const char kUsernameOtherDomain[] = "user@other.com"; 90 const char kUsernameOtherDomain[] = "user@other.com";
94 const char kAttributeOwned[] = "enterprise.owned";
95 const char kAttributeOwner[] = "enterprise.user";
96 const char kAttributeConsumerKiosk[] = "consumer.app_kiosk_enabled";
97 const char kAttrEnterpriseDomain[] = "enterprise.domain";
98 const char kAttrEnterpriseMode[] = "enterprise.mode";
99 const char kAttrEnterpriseDeviceId[] = "enterprise.device_id";
100 91
101 const char kOAuthTokenCookie[] = "oauth_token=1234"; 92 const char kOAuthTokenCookie[] = "oauth_token=1234";
102 93
103 const char kGaiaAccountDisabledResponse[] = "Error=AccountDeleted"; 94 const char kGaiaAccountDisabledResponse[] = "Error=AccountDeleted";
104 95
105 const char kOAuth2TokenPairData[] = 96 const char kOAuth2TokenPairData[] =
106 "{" 97 "{"
107 " \"refresh_token\": \"1234\"," 98 " \"refresh_token\": \"1234\","
108 " \"access_token\": \"5678\"," 99 " \"access_token\": \"5678\","
109 " \"expires_in\": 3600" 100 " \"expires_in\": 3600"
(...skipping 573 matching lines...) Expand 10 before | Expand all | Expand 10 after
683 } 674 }
684 675
685 INSTANTIATE_TEST_CASE_P( 676 INSTANTIATE_TEST_CASE_P(
686 LoginUtilsBlockingLoginTestInstance, 677 LoginUtilsBlockingLoginTestInstance,
687 LoginUtilsBlockingLoginTest, 678 LoginUtilsBlockingLoginTest,
688 testing::Values(0, 1, 2, 3, 4, 5)); 679 testing::Values(0, 1, 2, 3, 4, 5));
689 680
690 } // namespace 681 } // namespace
691 682
692 } // namespace chromeos 683 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698