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

Side by Side Diff: chrome/test/live_sync/themes_helper.h

Issue 7599019: Allow sync integration tests to operate on multiple datatypes: Apps, Extensions, Themes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: CR feedback Created 9 years, 4 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 | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_TEST_LIVE_SYNC_THEMES_HELPER_H_
6 #define CHROME_TEST_LIVE_SYNC_THEMES_HELPER_H_
7 #pragma once
8
9 #include <string>
10
11 #include "base/basictypes.h"
12 #include "base/compiler_specific.h"
13 #include "chrome/test/live_sync/live_sync_test.h"
14
15 class Profile;
16
17 namespace themes_helper {
18
19 // Gets the unique ID of the custom theme with the given index.
20 std::string GetCustomTheme(int index) WARN_UNUSED_RESULT;
21
22 // Gets the ID of |profile|'s theme.
23 std::string GetThemeID(Profile* profile) WARN_UNUSED_RESULT;
24
25 // Returns true iff |profile| is using a custom theme.
26 bool UsingCustomTheme(Profile* profile) WARN_UNUSED_RESULT;
27
28 // Returns true iff |profile| is using the default theme.
29 bool UsingDefaultTheme(Profile* profile) WARN_UNUSED_RESULT;
30
31 // Returns true iff |profile| is using the native theme.
32 bool UsingNativeTheme(Profile* profile) WARN_UNUSED_RESULT;
33
34 // Returns true iff a theme with the given ID is pending install in
35 // |profile|.
36 bool ThemeIsPendingInstall(
37 Profile* profile, const std::string& id) WARN_UNUSED_RESULT;
38
39 // Returns true iff |profile|'s current theme is the given
40 // custom theme or if the given theme is pending install.
41 bool HasOrWillHaveCustomTheme(
42 Profile* profile, const std::string& id) WARN_UNUSED_RESULT;
43
44 // Sets |profile| to use the custom theme with the given index.
45 void UseCustomTheme(Profile* profile, int index);
46
47 // Sets |profile| to use the default theme.
48 void UseDefaultTheme(Profile* profile);
49
50 // Sets |profile| to use the native theme.
51 void UseNativeTheme(Profile* profile);
52
53 } // namespace themes_helper
54
55 #endif // CHROME_TEST_LIVE_SYNC_THEMES_HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698