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

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

Issue 684613002: Standardize usage of virtual/override/final specifiers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 <string> 5 #include <string>
6 6
7 #include "base/base64.h" 7 #include "base/base64.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/files/file_util.h" 10 #include "base/files/file_util.h"
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 base::ReplaceChars(*encoded, "/", "_", encoded); 96 base::ReplaceChars(*encoded, "/", "_", encoded);
97 return true; 97 return true;
98 } 98 }
99 #endif 99 #endif
100 100
101 } // namespace 101 } // namespace
102 102
103 class ComponentCloudPolicyTest : public ExtensionBrowserTest { 103 class ComponentCloudPolicyTest : public ExtensionBrowserTest {
104 protected: 104 protected:
105 ComponentCloudPolicyTest() {} 105 ComponentCloudPolicyTest() {}
106 virtual ~ComponentCloudPolicyTest() {} 106 ~ComponentCloudPolicyTest() override {}
107 107
108 void SetUpCommandLine(CommandLine* command_line) override { 108 void SetUpCommandLine(CommandLine* command_line) override {
109 ExtensionBrowserTest::SetUpCommandLine(command_line); 109 ExtensionBrowserTest::SetUpCommandLine(command_line);
110 #if defined(OS_CHROMEOS) 110 #if defined(OS_CHROMEOS)
111 // ExtensionBrowserTest sets the login users to a non-managed value; 111 // ExtensionBrowserTest sets the login users to a non-managed value;
112 // replace it. This is the default username sent in policy blobs from the 112 // replace it. This is the default username sent in policy blobs from the
113 // testserver. 113 // testserver.
114 command_line->AppendSwitchASCII( 114 command_line->AppendSwitchASCII(
115 ::chromeos::switches::kLoginUser, "user@example.com"); 115 ::chromeos::switches::kLoginUser, "user@example.com");
116 #endif 116 #endif
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 ExtensionTestMessageListener signin_policy_listener(kTestPolicyJSON, true); 338 ExtensionTestMessageListener signin_policy_listener(kTestPolicyJSON, true);
339 event_listener2.Reply("get-policy-Name"); 339 event_listener2.Reply("get-policy-Name");
340 EXPECT_TRUE(signin_policy_listener.WaitUntilSatisfied()); 340 EXPECT_TRUE(signin_policy_listener.WaitUntilSatisfied());
341 341
342 // And the cache is back. 342 // And the cache is back.
343 EXPECT_TRUE(base::PathExists(cache_path)); 343 EXPECT_TRUE(base::PathExists(cache_path));
344 } 344 }
345 #endif 345 #endif
346 346
347 } // namespace policy 347 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698