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

Side by Side Diff: chrome/browser/chromeos/policy/signin_profile_apps_policy_browsertest.cc

Issue 2861723002: Smoke test for login screen apps (Closed)
Patch Set: Rename test Created 3 years, 7 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 | « no previous file | chrome/test/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
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "base/command_line.h"
6 #include "base/macros.h"
7 #include "chrome/browser/browser_process.h"
8 #include "chrome/browser/chromeos/profiles/profile_helper.h"
9 #include "chrome/browser/extensions/extension_service.h"
10 #include "chrome/browser/profiles/profile_manager.h"
11 #include "chrome/common/chrome_switches.h"
12 #include "chrome/test/base/in_process_browser_test.h"
13 #include "content/public/test/browser_test.h"
14 #include "extensions/browser/extension_system.h"
15 #include "testing/gtest/include/gtest/gtest.h"
16
17 namespace policy {
18
19 namespace {
20
21 // Tests for the sign-in profile apps being enabled via the command line flag.
22 // TODO(emaxx): Remove this smoke test once it's investigated whether just
23 // specifying this command line flag leads to tests being timed out.
24 class SigninProfileAppsEnabledViaCommandLineTest : public InProcessBrowserTest {
25 protected:
26 SigninProfileAppsEnabledViaCommandLineTest() {}
27
28 void SetUpCommandLine(base::CommandLine* command_line) override {
29 InProcessBrowserTest::SetUpCommandLine(command_line);
30 command_line->AppendSwitch(switches::kEnableLoginScreenApps);
31 }
32
33 private:
34 DISALLOW_COPY_AND_ASSIGN(SigninProfileAppsEnabledViaCommandLineTest);
35 };
36
37 } // namespace
38
39 IN_PROC_BROWSER_TEST_F(SigninProfileAppsEnabledViaCommandLineTest,
40 NoExtensions) {
41 Profile* const initial_profile =
42 g_browser_process->profile_manager()->GetProfileByPath(
43 chromeos::ProfileHelper::GetSigninProfileDir());
44 ASSERT_TRUE(initial_profile);
45 EXPECT_TRUE(extensions::ExtensionSystem::Get(initial_profile)
46 ->extension_service()
47 ->extensions_enabled());
48 }
49
50 } // namespace policy
OLDNEW
« no previous file with comments | « no previous file | chrome/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698