OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "chrome/browser/extensions/extension_sync_data.h" | 5 #include "chrome/browser/extensions/extension_sync_data.h" |
6 | 6 |
7 #include "base/files/file_path.h" | 7 #include "base/files/file_path.h" |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/version.h" |
9 #include "sync/protocol/extension_specifics.pb.h" | 10 #include "sync/protocol/extension_specifics.pb.h" |
10 #include "sync/protocol/sync.pb.h" | 11 #include "sync/protocol/sync.pb.h" |
11 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
12 #include "url/gurl.h" | 13 #include "url/gurl.h" |
13 | 14 |
14 namespace { | 15 namespace { |
15 | 16 |
16 const char kValidId[] = "abcdefghijklmnopabcdefghijklmnop"; | 17 const char kValidId[] = "abcdefghijklmnopabcdefghijklmnop"; |
17 const char kVersion[] = "1.0.0.1"; | 18 const char kVersion[] = "1.0.0.1"; |
18 const char kValidUpdateUrl[] = | 19 const char kValidUpdateUrl[] = |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 output_specifics.update_url()); | 69 output_specifics.update_url()); |
69 EXPECT_EQ(extension_sync_data.enabled(), output_specifics.enabled()); | 70 EXPECT_EQ(extension_sync_data.enabled(), output_specifics.enabled()); |
70 EXPECT_EQ(extension_sync_data.incognito_enabled(), | 71 EXPECT_EQ(extension_sync_data.incognito_enabled(), |
71 output_specifics.incognito_enabled()); | 72 output_specifics.incognito_enabled()); |
72 EXPECT_EQ(extension_sync_data.version().GetString(), | 73 EXPECT_EQ(extension_sync_data.version().GetString(), |
73 output_specifics.version()); | 74 output_specifics.version()); |
74 EXPECT_EQ(extension_sync_data.name(), output_specifics.name()); | 75 EXPECT_EQ(extension_sync_data.name(), output_specifics.name()); |
75 } | 76 } |
76 | 77 |
77 } // namespace | 78 } // namespace |
OLD | NEW |