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

Side by Side Diff: chrome/test/live_sync/live_themes_sync_test.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: Fix indents 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_LIVE_THEMES_SYNC_TEST_H_
6 #define CHROME_TEST_LIVE_SYNC_LIVE_THEMES_SYNC_TEST_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_extension_helper.h"
14 #include "chrome/test/live_sync/live_sync_test.h"
15
16 class Profile;
17
18 class LiveThemesSyncTest : public LiveSyncTest {
19 public:
20 explicit LiveThemesSyncTest(TestType test_type);
21 virtual ~LiveThemesSyncTest();
22
23 protected:
24 // Like LiveSyncTest::SetupClients(), but also sets up
25 // |extension_helper_|.
26 virtual bool SetupClients() OVERRIDE WARN_UNUSED_RESULT;
27
28 // Gets the unique ID of the custom theme with the given index.
29 std::string GetCustomTheme(int index) const WARN_UNUSED_RESULT;
30
31 // Gets the ID of |profile|'s theme.
32 std::string GetThemeID(Profile* profile) const WARN_UNUSED_RESULT;
33
34 // Returns true iff |profile| is using a custom theme.
35 bool UsingCustomTheme(Profile* profile) const WARN_UNUSED_RESULT;
36
37 // Returns true iff |profile| is using the default theme.
38 bool UsingDefaultTheme(Profile* profile) const WARN_UNUSED_RESULT;
39
40 // Returns true iff |profile| is using the native theme.
41 bool UsingNativeTheme(Profile* profile) const WARN_UNUSED_RESULT;
42
43 // Returns true iff a theme with the given ID is pending install in
44 // |profile|.
45 bool ThemeIsPendingInstall(
46 Profile* profile, const std::string& id) const WARN_UNUSED_RESULT;
47
48 // Returns true iff |profile|'s current theme is the given
49 // custom theme or if the given theme is pending install.
50 bool HasOrWillHaveCustomTheme(
51 Profile* profile, const std::string& id) const WARN_UNUSED_RESULT;
52
53 // Sets |profile| to use the custom theme with the given index.
54 void UseCustomTheme(Profile* profile, int index);
55
56 // Sets |profile| to use the default theme.
57 void UseDefaultTheme(Profile* profile);
58
59 // Sets |profile| to use the native theme.
60 void UseNativeTheme(Profile* profile);
61
62 private:
63 LiveSyncExtensionHelper extension_helper_;
64
65 DISALLOW_COPY_AND_ASSIGN(LiveThemesSyncTest);
66 };
67
68 #endif // CHROME_TEST_LIVE_SYNC_LIVE_THEMES_SYNC_TEST_H_
OLDNEW
« no previous file with comments | « chrome/test/live_sync/live_sync_extension_helper.cc ('k') | chrome/test/live_sync/live_themes_sync_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698