OLD | NEW |
(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_ |
OLD | NEW |