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

Side by Side Diff: chrome/browser/ui/sync/sync_promo_ui_unittest.cc

Issue 2345843003: [Sync] Merge //components/browser_sync into one directory. (Closed)
Patch Set: Address comment + rebase. Created 4 years, 3 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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 "chrome/browser/ui/sync/sync_promo_ui.h" 5 #include "chrome/browser/ui/sync/sync_promo_ui.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "build/build_config.h" 12 #include "build/build_config.h"
13 #include "chrome/browser/signin/fake_signin_manager_builder.h" 13 #include "chrome/browser/signin/fake_signin_manager_builder.h"
14 #include "chrome/browser/signin/signin_manager_factory.h" 14 #include "chrome/browser/signin/signin_manager_factory.h"
15 #include "chrome/common/chrome_switches.h" 15 #include "chrome/common/chrome_switches.h"
16 #include "chrome/test/base/testing_profile.h" 16 #include "chrome/test/base/testing_profile.h"
17 #include "components/browser_sync/common/browser_sync_switches.h" 17 #include "components/browser_sync/browser_sync_switches.h"
18 #include "content/public/test/test_browser_thread_bundle.h" 18 #include "content/public/test/test_browser_thread_bundle.h"
19 #include "testing/gtest/include/gtest/gtest.h" 19 #include "testing/gtest/include/gtest/gtest.h"
20 20
21 class SyncPromoUITest : public testing::Test { 21 class SyncPromoUITest : public testing::Test {
22 public: 22 public:
23 SyncPromoUITest() {} 23 SyncPromoUITest() {}
24 24
25 // testing::Test: 25 // testing::Test:
26 void SetUp() override { 26 void SetUp() override {
27 testing::Test::SetUp(); 27 testing::Test::SetUp();
(...skipping 26 matching lines...) Expand all
54 // Verifies that ShouldShowSyncPromo returns true if all conditions to 54 // Verifies that ShouldShowSyncPromo returns true if all conditions to
55 // show the promo are met. 55 // show the promo are met.
56 TEST_F(SyncPromoUITest, ShouldShowSyncPromoSyncEnabled) { 56 TEST_F(SyncPromoUITest, ShouldShowSyncPromoSyncEnabled) {
57 #if defined(OS_CHROMEOS) 57 #if defined(OS_CHROMEOS)
58 // No sync promo on CrOS. 58 // No sync promo on CrOS.
59 EXPECT_FALSE(SyncPromoUI::ShouldShowSyncPromo(profile_.get())); 59 EXPECT_FALSE(SyncPromoUI::ShouldShowSyncPromo(profile_.get()));
60 #else 60 #else
61 EXPECT_TRUE(SyncPromoUI::ShouldShowSyncPromo(profile_.get())); 61 EXPECT_TRUE(SyncPromoUI::ShouldShowSyncPromo(profile_.get()));
62 #endif 62 #endif
63 } 63 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/sync/profile_signin_confirmation_helper.cc ('k') | chrome/browser/ui/toolbar/recent_tabs_sub_menu_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698