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

Side by Side Diff: chrome/browser/background/background_mode_manager_unittest.cc

Issue 1542413002: Switch to standard integer types in chrome/browser/, part 1 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 <stddef.h>
6
5 #include "base/bind.h" 7 #include "base/bind.h"
6 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/macros.h"
7 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
8 #include "base/message_loop/message_loop.h" 11 #include "base/message_loop/message_loop.h"
9 #include "base/strings/utf_string_conversions.h" 12 #include "base/strings/utf_string_conversions.h"
10 #include "base/test/test_simple_task_runner.h" 13 #include "base/test/test_simple_task_runner.h"
11 #include "base/thread_task_runner_handle.h" 14 #include "base/thread_task_runner_handle.h"
15 #include "build/build_config.h"
12 #include "chrome/browser/background/background_mode_manager.h" 16 #include "chrome/browser/background/background_mode_manager.h"
13 #include "chrome/browser/background/background_trigger.h" 17 #include "chrome/browser/background/background_trigger.h"
14 #include "chrome/browser/browser_shutdown.h" 18 #include "chrome/browser/browser_shutdown.h"
15 #include "chrome/browser/extensions/extension_function_test_utils.h" 19 #include "chrome/browser/extensions/extension_function_test_utils.h"
16 #include "chrome/browser/extensions/extension_service.h" 20 #include "chrome/browser/extensions/extension_service.h"
17 #include "chrome/browser/extensions/test_extension_system.h" 21 #include "chrome/browser/extensions/test_extension_system.h"
18 #include "chrome/browser/lifetime/application_lifetime.h" 22 #include "chrome/browser/lifetime/application_lifetime.h"
19 #include "chrome/browser/profiles/profile_info_cache.h" 23 #include "chrome/browser/profiles/profile_info_cache.h"
20 #include "chrome/browser/status_icons/status_icon_menu_model.h" 24 #include "chrome/browser/status_icons/status_icon_menu_model.h"
21 #include "chrome/common/chrome_switches.h" 25 #include "chrome/common/chrome_switches.h"
(...skipping 995 matching lines...) Expand 10 before | Expand all | Expand 10 after
1017 // When the background mode pref is enabled and there are pending triggers 1021 // When the background mode pref is enabled and there are pending triggers
1018 // they will be registered and the user will be notified. 1022 // they will be registered and the user will be notified.
1019 EXPECT_CALL(manager, EnableLaunchOnStartup(true)); 1023 EXPECT_CALL(manager, EnableLaunchOnStartup(true));
1020 g_browser_process->local_state()->SetBoolean(prefs::kBackgroundModeEnabled, 1024 g_browser_process->local_state()->SetBoolean(prefs::kBackgroundModeEnabled,
1021 true); 1025 true);
1022 Mock::VerifyAndClearExpectations(&manager); 1026 Mock::VerifyAndClearExpectations(&manager);
1023 ASSERT_EQ(1, manager.GetBackgroundClientCountForProfile(profile_)); 1027 ASSERT_EQ(1, manager.GetBackgroundClientCountForProfile(profile_));
1024 AssertBackgroundModeActive(manager); 1028 AssertBackgroundModeActive(manager);
1025 ASSERT_TRUE(manager.HasShownBalloon()); 1029 ASSERT_TRUE(manager.HasShownBalloon());
1026 } 1030 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698