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

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

Issue 4732005: [Sync] Added some basic extension sync integration tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: addressed rsimha's comments Created 10 years, 1 month 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
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/test/live_sync/live_extensions_sync_test.cc » ('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 (c) 2010 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_EXTENSIONS_SYNC_TEST_H_
6 #define CHROME_TEST_LIVE_SYNC_LIVE_EXTENSIONS_SYNC_TEST_H_
7 #pragma once
8
9 #include <vector>
10
11 #include "base/basictypes.h"
12 #include "base/compiler_specific.h"
13 #include "base/scoped_temp_dir.h"
14 #include "base/ref_counted.h"
15 #include "chrome/test/live_sync/live_extensions_sync_test_base.h"
16
17 class Extension;
18 class Profile;
19
20 class LiveExtensionsSyncTest : public LiveExtensionsSyncTestBase {
21 public:
22 explicit LiveExtensionsSyncTest(TestType test_type);
23 virtual ~LiveExtensionsSyncTest();
24
25 protected:
26 // Returns true iff the given profile has the same extensions as the
27 // verifier.
28 bool HasSameExtensionsAsVerifier(int profile) WARN_UNUSED_RESULT;
29
30 // Returns true iff all existing profiles have the same extensions
31 // as the verifier.
32 bool AllProfilesHaveSameExtensionsAsVerifier() WARN_UNUSED_RESULT;
33
34 private:
35 // Returns true iff the given two profiles have the same set of
36 // enabled, disabled, and pending extensions.
37 static bool HasSameExtensionsHelper(
38 Profile* profile1, Profile* profile2) WARN_UNUSED_RESULT;
39
40 DISALLOW_COPY_AND_ASSIGN(LiveExtensionsSyncTest);
41 };
42
43 #endif // CHROME_TEST_LIVE_SYNC_LIVE_EXTENSIONS_SYNC_TEST_H_
OLDNEW
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/test/live_sync/live_extensions_sync_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698