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" | |
10 #include "sync/protocol/extension_specifics.pb.h" | 9 #include "sync/protocol/extension_specifics.pb.h" |
11 #include "sync/protocol/sync.pb.h" | 10 #include "sync/protocol/sync.pb.h" |
12 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
13 #include "url/gurl.h" | 12 #include "url/gurl.h" |
14 | 13 |
15 namespace { | 14 namespace { |
16 | 15 |
17 const char kValidId[] = "abcdefghijklmnopabcdefghijklmnop"; | 16 const char kValidId[] = "abcdefghijklmnopabcdefghijklmnop"; |
18 const char kVersion[] = "1.0.0.1"; | 17 const char kVersion[] = "1.0.0.1"; |
19 const char kValidUpdateUrl[] = | 18 const char kValidUpdateUrl[] = |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 output_specifics.update_url()); | 68 output_specifics.update_url()); |
70 EXPECT_EQ(extension_sync_data.enabled(), output_specifics.enabled()); | 69 EXPECT_EQ(extension_sync_data.enabled(), output_specifics.enabled()); |
71 EXPECT_EQ(extension_sync_data.incognito_enabled(), | 70 EXPECT_EQ(extension_sync_data.incognito_enabled(), |
72 output_specifics.incognito_enabled()); | 71 output_specifics.incognito_enabled()); |
73 EXPECT_EQ(extension_sync_data.version().GetString(), | 72 EXPECT_EQ(extension_sync_data.version().GetString(), |
74 output_specifics.version()); | 73 output_specifics.version()); |
75 EXPECT_EQ(extension_sync_data.name(), output_specifics.name()); | 74 EXPECT_EQ(extension_sync_data.name(), output_specifics.name()); |
76 } | 75 } |
77 | 76 |
78 } // namespace | 77 } // namespace |
OLD | NEW |