OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/sync/glue/theme_util.h" | 5 #include "chrome/browser/sync/glue/theme_util.h" |
6 | 6 |
7 #include "base/file_path.h" | 7 #include "base/file_path.h" |
8 #include "base/values.h" | 8 #include "base/values.h" |
9 #include "chrome/browser/profiles/profile.h" | 9 #include "chrome/browser/profiles/profile.h" |
10 #include "chrome/browser/sync/protocol/theme_specifics.pb.h" | 10 #include "chrome/browser/sync/protocol/theme_specifics.pb.h" |
11 #include "chrome/browser/themes/theme_service.h" | 11 #include "chrome/browser/themes/theme_service.h" |
12 #include "chrome/browser/themes/theme_service_factory.h" | 12 #include "chrome/browser/themes/theme_service_factory.h" |
13 #include "chrome/common/extensions/extension.h" | 13 #include "chrome/common/extensions/extension.h" |
14 #include "chrome/common/extensions/extension_constants.h" | 14 #include "chrome/common/extensions/extension_constants.h" |
| 15 #include "chrome/test/base/testing_browser_process_test.h" |
15 #include "chrome/test/base/testing_profile.h" | 16 #include "chrome/test/base/testing_profile.h" |
16 #include "chrome/test/testing_browser_process_test.h" | |
17 #include "testing/gmock/include/gmock/gmock.h" | 17 #include "testing/gmock/include/gmock/gmock.h" |
18 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
19 | 19 |
20 namespace browser_sync { | 20 namespace browser_sync { |
21 | 21 |
22 namespace { | 22 namespace { |
23 | 23 |
24 using ::testing::AnyNumber; | 24 using ::testing::AnyNumber; |
25 using ::testing::Return; | 25 using ::testing::Return; |
26 | 26 |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 // TODO(akalin): Mock out call to GetPrefs() under TOOLKIT_USES_GTK. | 233 // TODO(akalin): Mock out call to GetPrefs() under TOOLKIT_USES_GTK. |
234 | 234 |
235 sync_pb::ThemeSpecifics theme_specifics; | 235 sync_pb::ThemeSpecifics theme_specifics; |
236 SetCurrentThemeFromThemeSpecificsIfNecessary(theme_specifics, | 236 SetCurrentThemeFromThemeSpecificsIfNecessary(theme_specifics, |
237 &profile); | 237 &profile); |
238 } | 238 } |
239 | 239 |
240 } // namespace | 240 } // namespace |
241 | 241 |
242 } // namespace browser_sync | 242 } // namespace browser_sync |
OLD | NEW |