| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 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 | 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 #ifndef CHROME_TEST_LIVE_SYNC_BOOKMARK_MODEL_VERIFIER_H_ | 5 #ifndef CHROME_TEST_LIVE_SYNC_BOOKMARK_MODEL_VERIFIER_H_ |
| 6 #define CHROME_TEST_LIVE_SYNC_BOOKMARK_MODEL_VERIFIER_H_ | 6 #define CHROME_TEST_LIVE_SYNC_BOOKMARK_MODEL_VERIFIER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
| 13 #include "chrome/browser/bookmarks/bookmark_model.h" | 13 #include "chrome/browser/bookmarks/bookmark_model.h" |
| 14 #include "chrome/browser/profile.h" | 14 #include "chrome/browser/profiles/profile.h" |
| 15 #include "googleurl/src/gurl.h" | 15 #include "googleurl/src/gurl.h" |
| 16 #include "third_party/skia/include/core/SkBitmap.h" | 16 #include "third_party/skia/include/core/SkBitmap.h" |
| 17 | 17 |
| 18 // Helper class that performs operations on a bookmark model and echoes the | 18 // Helper class that performs operations on a bookmark model and echoes the |
| 19 // changes in a verifier model that can be used as an expected hierarchy to | 19 // changes in a verifier model that can be used as an expected hierarchy to |
| 20 // compare against. | 20 // compare against. |
| 21 // Note: When we refer to the "same" node in |model| and |verifier_model_|, | 21 // Note: When we refer to the "same" node in |model| and |verifier_model_|, |
| 22 // we mean the same canonical bookmark entity, because |verifier_model_| is | 22 // we mean the same canonical bookmark entity, because |verifier_model_| is |
| 23 // expected to be a replica of |model|. | 23 // expected to be a replica of |model|. |
| 24 class BookmarkModelVerifier { | 24 class BookmarkModelVerifier { |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 BookmarkModel* verifier_model_; | 122 BookmarkModel* verifier_model_; |
| 123 | 123 |
| 124 // A flag that indicates whether bookmark operations should also update the | 124 // A flag that indicates whether bookmark operations should also update the |
| 125 // verifier model or not. | 125 // verifier model or not. |
| 126 bool use_verifier_model_; | 126 bool use_verifier_model_; |
| 127 | 127 |
| 128 DISALLOW_COPY_AND_ASSIGN(BookmarkModelVerifier); | 128 DISALLOW_COPY_AND_ASSIGN(BookmarkModelVerifier); |
| 129 }; | 129 }; |
| 130 | 130 |
| 131 #endif // CHROME_TEST_LIVE_SYNC_BOOKMARK_MODEL_VERIFIER_H_ | 131 #endif // CHROME_TEST_LIVE_SYNC_BOOKMARK_MODEL_VERIFIER_H_ |
| OLD | NEW |